[TYPO3-project-formidable] Code Behind an TS
Jérôme Schneider
typo3dev at ameos.com
Sat Feb 28 12:03:29 CET 2009
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>
More information about the TYPO3-project-formidable
mailing list