On Thu, Mar 5, 2009 at 12:49 AM, Louis-David Mitterrand <
vindex+lists-mason-us...@apartia.org<vindex%2blists-mason-us...@apartia.org>
> wrote:

> On Tue, Mar 03, 2009 at 03:54:26PM +0100, Louis-David Mitterrand wrote:
> > So I could set stuff in the autohandler's <%once> section:
> >
> > <%once>
> > $r->dir_config(adsense_code1=>"bar");
> > $r->dir_config(other_constant=>"foo");
> > </%once>
>
> Argh! there is no $r in <%once> ...
>
> So I have to set them in the apache virtual host, right?
>

You might be able to get $r in a once block by calling the Apache->request()
method.  Perldoc Apache says:

        Apache->request([$r])
           The Apache->request method will return a reference to the request
object.

-- 
Ben
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to