[TYPO3-dev] Fake / simulate frontend environment ( TSFE )

Elmar Hinz elmar07 at googlemail.com
Wed Nov 21 11:22:36 CET 2007


> 
> this solution is very limited, there are missing some inits. Maybe this
> will fail on some typical FE-actions.
> - global $TSFE doesn't make sense for me
> -  // FIXME: ...  comment says more than i could say.
> 
> Did you compared it with the spellcheck-method from rte?
> 
> vg  Steffen

Hi Steffen,

I have seen the comment. That's why I underlined it's a quick approach.

Roberts example does just enough to enable you to create a cObj, without
setting up the full environment. 

Often you only want to use some tools from cObj, i.e. the typolink function
from within the BE. Unit testing is another example. Best if it doesn't
depend on the environment, because a changing environment, does not give
stable test conditions.

In such cases you can avoid to set up the full environment. Guess it makes
some difference in speed.

Regards

Elmar












More information about the TYPO3-dev mailing list