|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
schoenung Smarty Rookie
Joined: 05 Apr 2004 Posts: 28
|
Posted: Tue Aug 03, 2004 2:43 pm Post subject: template dir |
|
|
I'm having trouble setting up smarty's template dir on Win32. I have
Code: | //smarty set-up
require_once(SMARTY_DIR . 'Smarty.class.php');
$template = new Smarty;
//remove check in production enviroment
$template->compile_check = true;
$template->template_dir = 'c:/templates/';
$template->compile_dir = 'c:/templates_c/';
$template->cache_dir = 'c:/cache/';
$template->config_dir = 'c:/configs/'; |
I then get the following error even though the template is in the specified directory
Code: | Warning: Smarty error: unable to read resource: "onsite_reg.welcome.htm" in c:\Program Files\PHP\PHP4.3.8\includes\smarty\Smarty.class.php on line 2229 |
I would expect this tio mean smarty cannot find the file. However I've checked and double checked the paths/names etc. Is there something I'm missing here? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Aug 03, 2004 3:38 pm Post subject: |
|
|
probably the permissions are not appropriate |
|
Back to top |
|
schoenung Smarty Rookie
Joined: 05 Apr 2004 Posts: 28
|
Posted: Tue Aug 03, 2004 5:07 pm Post subject: |
|
|
boots wrote: | probably the permissions are not appropriate |
Where/How would I check these? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Aug 03, 2004 5:13 pm Post subject: |
|
|
what webserver?
Try this: see if you can write a PHP script to read files from your template dir and read/write files to your templates_c dir. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|