[Templates] Easy access to the context object
Jonas Liljegren
jonas@paranormal.se
Wed, 16 Aug 2000 11:30:05 +0200 (CEST)
Is there an easy way to access the context object?
I don't like the distinctions between TT plugins and just normal
functions/objects called from the template.
Why not make the context accessible through a static method like
Template->context()? Or maby more threadsafe, export the object to the
callers namespace to the $TT_CONTEXT variable?
I think of this as a similar way to how AUTOLOAD works.
--
/ Jonas - http://jonas.liljegren.org/myself/en/index.html