[TYPO3-ect] lib/div 1.0 - it's time to say thank you
Nikolas Hagelstein
hagelstein at shr.cc
Mon Jan 8 14:12:33 CET 2007
Hi,
> From which source? If it is from the setup, it would come with the
> configuration object.
Lets assume i need to pass non model related data from a particular
controller
to the current view e.g the current users name or something.
> I don't understand what several actions are. There has to be always
> exactly one action, either set in TS (static) or incomming from a
> form (POST) or from a link (GET).
Yes right but a action could result in "a combined view "
e.g:
i got the following actions spreaded over 2 controllers.
controller A->getEmployeesByCompany
controller B->getCompanyDetails
To avoid code redundancy A->getEmployeesByCompany should be used in
several places
e.g. its returned view should be placed somewhere within
getCompanyDetails view.
The above described issue is known as action chaining or action requests
withing other frameworks.
In detail it enables a controller to request an action from annother
controller and use its returned
within itself.
metacode (withincontroller):
$someView=$this->requestAction('controllerA','someAction');
// pass $someView to view and output it
This technic is extremlly usefull in conjuction with ajax where small
parts auf a view need
to be reloaded/updated often.
This is also related to issue 1.
>> 3.Model localization
> I would say you do it as usual. There is nothing special to with
> lib/div models.
hmm ok.
> 4.Static text localization
> User markers of the type %%%xyz%%% and define the translations in the
> locallang class.
Ok
Cheers,
Nikolas
More information about the TYPO3-team-extension-coordination
mailing list