[TYPO3-ect] MVC Parameters
Sven Kalbhenn
sven at skom.de
Fri Sep 21 11:21:01 CEST 2007
Hi all,
> at the moment I'm programming a new extension with the MVC-concept
> (lib/div). I used the TS-method like shown in the "bananas"-extension
> (so my
> controller is empty as well).
>
> But now I have a big problem: I can't get any parameters in my model
> (neither POST nor GET).
I found the solution! :o)
I figured out, that the paramters-object is an iterator-object, so I tried
the following syntax in the model:
$this->controller->parameters->get('statDay');
And it works!!! :o)
Will this be the way to get parameters in the future?
(By the way: Why is the bananas-extension only working with PHP5.x? I
thought that the lib/div-concept is the link between the old
programming-style for extensions and the OO-style. Will the lib and div
extensions keep running under PHP4 in the future?)
More information about the TYPO3-team-extension-coordination
mailing list