[TYPO3-ect] Best way to access request parameters from model?

Franz Koch typo.removeformessage at fx-graefix.de
Tue Oct 2 12:18:16 CEST 2007


Hi,

> D) Static access 
> ================
> 
> Something  like:
> 
> $uid = tx_lib_request::get('uid');
> $title = tx_lib_request::get('title');
> 
> Advantages:
> 
>  * Easy to use.
>  * Few to type.
> 
> Disadvantages:
> 
>  * No dependancy injection.
>  * No direct reusibility of the models. 
>  * Unit testing needs additional measures.

i guess I'd also prefer D). I like having a stack for global stuff, 
always present, least memory usage and so on.

--
Franz


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