[TYPO3-ect] MVC Parameters

Sven Kalbhenn sven at skom.de
Thu Sep 20 09:24:11 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 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