[TYPO3-ect] translations with lib/div

Elmar Hinz elmar07 at googlemail.com
Mon Jul 30 12:21:24 CEST 2007


> 
> btw - why don't using the configuration in
> $this->controller['conf']
> 

Hi Steffen, 

you will meet the pattern of this question again and again. "Why not putting
this function and that configuration into the controller? It's easier to
access then!".

The answer: All this people are right, if you take the suggestion isolated.
Things are easier to access directly the controller. But if we put all this
back into the controller, we have tslib_pibase again. A monolithic class
that contains a hundred functions and variables.

lib brings order into the thingies. But order always has a price. It's some
additional typing for the namespaces.

Btw. in full telling words it is:

$this->controller['configurations']
$this->controller->configurations

Wich tends out to be even 2 signs longer.

In JavaScript and Java it would be shorter. Similar to
like "this.controller.configurations" or even "controller.configurations".
PHP has disadvantages here for historical reasons. 

Regards

Elmar


















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