[Catalyst] Re: Including a submenu
Bill Moseley
moseley at hank.org
Tue Apr 7 14:07:56 GMT 2009
On Tue, Apr 07, 2009 at 07:09:55AM -0400, Matthew Topper wrote:
> >
>
> Maybe the email was lost somewhere as I sent it out last afternoon.
> Anyway, for anyone that cares the problem was simply that I didn't
> restart apache after modifying some of my controllers. So, it used the
> new templates but not the controllers since they run directly under the
> webserver.
Huh? I guess that's one reason not to use Apache for development as
it confuses what problem you are having.
But your question was this:
[% INCLUDE "$page/menu.tt2" %]
Resulted in:
Couldn't render template "file error - /menu.tt2: absolute paths
are not allowed (set ABSOLUTE option)"
How is that related to the controller and restarting Apache?
As I tried to show, your syntax needs to change.
This is what you were trying:
echo '[% page = 'foo'; PROCESS "$foo/bar.tt" %]' | tpage --noabsolute
file error - /bar.tt: absolute paths are not allowed (set ABSOLUTE option)
If you want to process a variable try this:
echo '[% page = "foo"; menu = "$page/bar.tt"; PROCESS $menu %]' | tpage --noabsolute
file error - foo/bar.tt: not found
--
Bill Moseley.
moseley at hank.org
Sent from my iMutt
More information about the Catalyst
mailing list