RE: [SMARTY] Newbie issue with Smarty

From: Date: Tue, 21 May 2002 15:14:59 +0000
Subject: RE: [SMARTY] Newbie issue with Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4325@lists.php.net to get a copy of this message
yes templates_c is in the directory where the index.php scipt is located i.e. this is the structure ... test\configs test\Smarty-2.1.1\... test\templates\index.tpl test\index.php test\templates_c\117\1172603085\0.php > -----Original Message----- > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: 21 May 2002 16:02 > To: Rich Gray > Cc: smarty-general@lists.php.net > Subject: Re: [SMARTY] Newbie issue with Smarty > > > The templates_c directory, where is it? It the same directory as the > executing script? If not, make one, or change the $compile_dir path. If > it is there, does the web server user have permission to write files > into it? > > Rich Gray wrote: > > NT 4.0/PHP 4.2.1 CGI Mode > > Smarty v2.1.1 > > Apache/1.3.22 > > > > I have just downloaded Smarty to play around with and am going > through the > > QUICKSTART instructions and I get this problem already... > > > > Warning: Failed opening 'templates_c\117\1172603085\0.php' for inclusion > > (include_path='d:/Program Files/Apache Group/Apache/htdocs') in > d:\Program > > Files\Apache > Group\Apache\htdocs\test\smarty-2.1.1\Smarty.class.php on line > > 641 > > > > Here is the index.php file I am using... > > > > <?php > > define("SMARTY_DIR","d:/Program Files/Apache > > Group/Apache/htdocs/test/smarty-2.1.1/"); > > require(SMARTY_DIR."Smarty.class.php"); > > $smarty = new Smarty; > > $smarty->assign("Name","Ned"); > > $smarty->display("index.tpl"); > > ?> > > > > Line 641 of the class is this ... > > > > include($_smarty_compile_path); > > > > So if Smarty is dynamically creating the subdirectories when it > compiles the > > php code then how will php's include path get reset? Am I > missing something > > obvious - I'm sure I am! > > > > TIA > > Rich > > > > > > > > -- > Monte Ohrt <monte@ispi.net> > Director of Technology, ispi Inc. > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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