[TYPO3-ect] MVC Parameters

Fabien Udriot fudriot at omic.ch
Thu Sep 20 12:32:13 CEST 2007


It is a certainly a problem of URL formating. You should format your url 
as follow :

index.php? id=22 & myExtension[myParameter]= myValue

(without the spaces of course)

regards,

Fabien

Sven Kalbhenn a écrit :
> 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 tried:
> 
> $statDay = $this->controller->parameters['statDay'];
> 
>  
> 
> And I tried:
> 
> $statDay = $this->parameters['statDay'];
> 
>  
> 
> But without success :o(
> 
>  
> 
> My TS-Setup for the model looks like:
> 
> statDayAction {
> 
>   START = model
> 
>   model = tx_skomstats_models_transfers
> 
>   model.do.1 = receiveParameters
> 
>   model.do.2 = load
> 
>   model.go.TX_LIB_APS_OK = pager
> 
>     .
> 
> }
> 
>  
> 
> I don't know whether I need this "model.do.1 = receiveParameters" or not,
> but it doesn't work without also.
> 
> My project can be seen here:
> 
> http://www.pmsservice.de/index.php?id=11
> <http://www.pmsservice.de/index.php?id=11&no_cache=1> &no_cache=1
> 
> There I placed a "print_r($this)" to show the objects.
> 
>  
> 
> I would be very thankful, if someone could give me a hint, how to receive
> the POST- and GET-parameters in the model!!!
> 
> I searched for hours now and I'm really frustrated! ;o(
> 
>  
> 
> CU...Sven Kalbhenn
> 
>  
> 


More information about the TYPO3-team-extension-coordination mailing list