|
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 |
gdboling Smarty Rookie
Joined: 20 Feb 2004 Posts: 31
|
Posted: Fri Feb 20, 2004 1:24 am Post subject: Can't Load Resource in Subfolders |
|
|
I have used Smarty before, can't remember which version. I left it and PHP for a while. Anyway, now I am back at it and I am having a small problem. I am running Smarty 2.6.2, PHP 4.3.4 and Apache 2.0.48 on Windows XP.
Anyway, when I have php files in the root of my web app and tpl files in the root of my templates directory, everything works fine. But when I put files in Subfolders, I get the "Unable to read Resource" error message.
I have a test.php in a user folder. And I have test.tpl in /templates/user folder.
Like I said, in the root it works. In subfolders it does not. Any ideas?
Thanks a bunch. _________________ Gregg |
|
Back to top |
|
gdboling Smarty Rookie
Joined: 20 Feb 2004 Posts: 31
|
Posted: Fri Feb 20, 2004 2:10 am Post subject: |
|
|
I thought I found the solution. I looked at my Smarty.class.php file and noticed that use_sub_dir was set to false. I changed that to true and made sure my php.ini had safe_mode turned off.
But it still isn't working. _________________ Gregg |
|
Back to top |
|
gdboling Smarty Rookie
Joined: 20 Feb 2004 Posts: 31
|
Posted: Fri Feb 20, 2004 2:44 am Post subject: |
|
|
After more reading I realized the use_sub_dir really has nothing to do with my problem. _________________ Gregg |
|
Back to top |
|
gdboling Smarty Rookie
Joined: 20 Feb 2004 Posts: 31
|
Posted: Fri Feb 20, 2004 4:32 pm Post subject: |
|
|
Still having problems with this if anyone has any ideas.... _________________ Gregg |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Feb 20, 2004 5:45 pm Post subject: |
|
|
Not enough info, show your directory/file layout, php script(s) that launch smarty and the exact error messages. |
|
Back to top |
|
Duncan Smarty Pro
Joined: 16 Dec 2003 Posts: 166
|
Posted: Fri Feb 20, 2004 5:48 pm Post subject: |
|
|
Are there any open basedir restrictions in place?
And does this only happen with smarty, or with any php file in any subdir?
You should check the used paths, the permissions and see if error reporting E_ALL reports anything in such a case. |
|
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
|