RE: [SMARTY] Newbie Question

From: Date: Wed, 25 Sep 2002 01:52:19 +0000
Subject: RE: [SMARTY] Newbie Question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6019@lists.php.net to get a copy of this message
Ok - I resolved this ... it was because the templates/ and /templates_c folders were not in the same folder... Before I had c:\www\lib\templates and c:\www\lib\smarty\templates_c when I moved templates_c up 1 level it worked - I guess Smarty assumes the compiled directory is at the same level as the template - originally I had set $smarty->compile_dir to the correct directory... I guess it gets ignored by Smarty which is a shame :( Rich -----Original Message----- From: Josh Johnson [mailto:mailing_lists@allusiveimage.com] Sent: 24 September 2002 09:51 To: 'Rich Gray'; 'Smarty-General@Lists. Php. Net' Subject: RE: [SMARTY] Newbie Question I think you might have forgotten to define your $smarty_object->template_c variable... For some reason it looks like the script is looking for the compiled template file relative to the root directory, or to c:\www\lib... When I was using smarty in a development environment on windows XP (running apache as well), I had to write some very odd paths to get smarty to work. I never figured out why, but I had to specify the $smarty_object->template_c and a couple of the other directories in windows syntax but with escapes, like "c:\\websites\\app_dir\\smarty_dir\\templates_c\\", instead of the more comfortable unix style syntax, "/websites/app_dir/smarty_dir/templates_c/" It might make a difference if you set up php as an apache module or as a stand alone cgi handler, but I'm not sure. -- Josh -----Original Message----- From: Rich Gray [mailto:richardgray@onetel.co.uk] Sent: Tuesday, September 24, 2002 7:34 PM To: Smarty-General@Lists. Php. Net Subject: [SMARTY] Newbie Question Hi all Very basic question here... Smarty v2.3.0 PHP v4.2.3 Win2K Advanced Server Apache v1.3 I am starting to use Smarty to rebuild a current site and am getting the following error in the log file... [Tue Sep 24 15:46:58 2002] [error] PHP Warning: Failed opening '\%%200\%%2001463753\index.html.php' for inclusion (include_path='.;c:\www\lib') in c:\www\lib\smarty\Smarty.class.php on line 686 The template file is index.html Any pointers...? TIA RIch -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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