[TYPO3-project-formidable] Code Behind an TS
Nikitin S.M.
nikitinsm at gmail.com
Sat Feb 28 12:29:19 CET 2009
Thanks I forgot to say that I know that it works in that way. But how to
inlude miltiple codebehind-files for example php and js, it would
impossible in TS mode
Jérôme Schneider пишет:
> Hi Nikitin,
>
> The "10" is the problem
>
> A correct syntax would be:
>
> lib.testformidable = FORMIDABLE
> lib.testformidable < config.tx_ameosformidable.quickconf.nodb
> lib.testformidable.meta {
> codeBehind {
> type = php
> name = cb1
> path = fileadmin/xml/cb/class.test-codebehind.php
> }
> }
> lib.testformidable.elements {
> 10 = renderlet:BUTTON
> 10.label = Click me
> 10.onclick {
> runat = ajax
> exec = cb1.btnHelloWorldClient_Click()
> }
> }
>
>
> Now if you need more than one codeBehind declared, you'll have to suffix
> it with -X
>
> Like this:
>
> codeBehind-2 {
> type = php
> name = cb1
> path = fileadmin/xml/cb/class.test-codebehind2.php
> }
>
> Have a nice weekend !
> Jerome
>
>
> Nikitin S.M. a écrit :
>> Hi !
>> Can you explain me a uses of codebehind in TypoScript
>> I thought that will be correct? ...
>>
>> meta{
>> name = ..
>> form.formid = ...
>> codeBehind{
>> 10{
>> type = php
>> name = ...
>> path = ...
>> }
>> }
>> }
>>
>> .... but it's failed
>>
>> --
>> Best Regards
>> Nikitin Sergey <nikitinsm at gmail.com>
--
Best Regards,
Nikitin Sergey <nikitinsm at gmail.com>
More information about the TYPO3-project-formidable
mailing list