[Templates] Changeing the INCLUDE_PATH
Jonas Liljegren
jonas@paranormal.se
Tue, 15 Aug 2000 20:14:54 +0200 (CEST)
On Tue, 15 Aug 2000, Perrin Harkins wrote:
> On Tue, 15 Aug 2000, Jonas Liljegren wrote:
> > I remember that we talked about this. How do I change the INCLUDE_PATH of
> > an existing template object?
>
> The method for that is in the Template::Provider class. You can reach it
> like this:
> $tt->service->context->load_templates->[0]->include_path($include_path)
I can only conclude that you are not supposed to do this.
I will try it another way.
About the error handling: The tricky thing is that the same functions,
called by the template, are used both by the admin templates and the
templates that generate the static pages.
The command to produce a static page is done within the admin pages by a
specific action. An error from a generated static page should end up in
the $result in the admin page. But the same function could be used in the
admin page...
Well. I think that I have a good solution now.
If only some bugs in TT2 could be fixed... ;)
--
/ Jonas - http://jonas.liljegren.org/myself/en/index.html