James Lavery wrote:
Hi all,
In my Taglib, which I've written using TaglibHelper, I need to create
some temporary files under my documentroot, and then reference them in
my final HTML. In order to do this elegantly, I need to be able to get the location of
documentroot at run time. Can I get this through TaglibHelper, or do I
need use a different mechanism?

The Apache object ($r) is available from within your taglib via:


AxKit::Apache->request();

so, you'd just do:

my $r = AxKit::Apache->request();
my $docroot = $r->document_root;

-kip


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to