Re: include_php path

From: Date: Fri, 28 Dec 2001 16:35:04 +0000
Subject: Re: include_php path
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2413@lists.php.net to get a copy of this message
Peter Bowyer wrote: > > At 11:24 AM 12/28/01 -0500, Ron Dyck wrote: > >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 > > I see that you are also having the problem of an extra / being added - I > have this as well. In the end, I went back to using {php}{/php} which > works great :-) Double slashes shouldn't hurt anything in a directory path. {php}{/php} works fine if you don't need the security features of the template language. But they both conceptually work the same, they are in the same scope. > > Peter. > > --oOo-- > Narrow Gauge on the web - photos, directory and forums! > http://www.narrow-gauge.co.uk > --oOo-- > Peter's web page - Scottish narrow gauge in 009 > http://members.aol.com/reywob/ > --oOo-- > > --- > 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 > http://www.phpinsider.com/php/code/Smarty/ -- Monte Ohrt <monte@ispi.net> http://www.ispi.net/

« previous php.smarty.general (#2413) next »