[TYPO3-ect] Best way to access request parameters from model?
Elmar Hinz
elmar07 at googlemail.com
Tue Oct 2 09:43:30 CEST 2007
Elmar Hinz wrote:
>
> C) Let's call it traditional:
> =============================
>
I forgot
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.
More information about the TYPO3-team-extension-coordination
mailing list