Re: include_php path

From: Date: Fri, 28 Dec 2001 16:31:19 +0000
Subject: Re: include_php path
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2411@lists.php.net to get a copy of this message
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 :-) 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--

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