Fw: Re: include_php path
| From: | Ron Dyck | Date: | Fri, 28 Dec 2001 16:34:02 +0000 |
| Subject: | Fw: Re: include_php path | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2412@lists.php.net to get a copy of this message | ||
Hard coded it works fine:
{include_php
file=/home/admin/sites/ecommatrix/nigeria/modules/navigation/page_top}
(In most of my includes I don't use extensions.)
I'd expect the error message: "Failed opening '/$IncludePath/page_top'" to
show the parsed path...no?
ron
>
> > Ok, does this file exist on your server?
> >
> > /home/admin/sites/ecommatrix/nigeria/modules/navigation/page_top
> >
> > Maybe you are not including the file extention?
> >
> > {include_php file="$IncludePath/page_top.php"}
> >
> > Do you (or the web server user) have read access to this file/directory?
> >
> > Ron Dyck wrote:
> > >
> > > > It should look something like this:
> > > >
> > > > {include_php file="$IncludePath/foo.php"}
> > >
> > > OK, I must be missing something,
> > >
> > > I set this: $this->assign("IncludePath",
> > > "/home/admin/sites/ecommatrix/nigeria/modules/navigation");
> > >
> > > and call it like so: {include_php file="$IncludePath/page_top"}
> > >
> > > to get this error: Warning: Failed opening '/$IncludePath/page_top'
for
> > > inclusion
> > >
> > > The variable is set properly as it echos correctly as: {$IncludePath}
in
> the
> > > .tpl
> > >
> > > ron :~(
> > >
> > > ---
> > > You are currently subscribed to smarty as: monte@ispi.net
> > > To unsubscribe send a blank email to
$subst('Email.Unsub')
> > > Visit Smarty's homepage at Ït7Í ba³
> > > ×Þº¤úÞhttp://www.phpinsider.com/php/code/Smarty/
> >
> > --
> > Monte Ohrt <monte@ispi.net>
> > http://www.ispi.net/
> >
>