[TYPO3-ect] Best way to access request parameters from model?
Joerg Schoppet
joerg at schoppet.de
Tue Oct 2 09:54:02 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Elmar Hinz wrote:
> 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.
OK,
so my vote is for D ;-)
Joerg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHAfkaq5Me6rRDqPURAqJzAJ92EUSHzKorQDU5rbJe+1eG4gezdQCfW92U
Ku9FBbiYwrd1SJ+FE1WBoh4=
=vGuM
-----END PGP SIGNATURE-----
More information about the TYPO3-team-extension-coordination
mailing list