Smarty bug? or stupid coder?
| From: | Jason Dunbar | Date: | Tue, 12 Nov 2002 14:41:38 +0000 |
| Subject: | Smarty bug? or stupid coder? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6402@lists.php.net to get a copy of this message | ||
Hi there,
I've recently discovered Smarty after having it recommended to me, and so
far have found it to suit my needs.
However, I've also more recently run into a problem.
Take a look at http://www.interactdev1.co.uk/forum/forums_view.php
Now, this is just a little something I've been contracted to build, a simple
discussion forum (please note, still under construction)
The functionality of the discussion forum is there, and I am currently in
the process of converting the system to use Smarty.
The page that will display when you click that uses Smarty, a main template
housing a couple of if/else statements to test whether or not a user is
logged in.
it works as expected and displays fine.
Now, click on the uppermost forum name (displayed as a link). You should
inside see navigation at the top and the bottom (included templates) and a
main body (also a template)
telling you that the forum has not yet been populated. It hasn't been
populated for demonstration purposes.
Now try going up a level to view the forums, then try clicking on another
forum. See? nothing displays.
it is EXACTLY the same file.. just a different id variable passed in the
querystring. The application works fine locally on a similar setup. I've
tried this.. I've tried that..
I've even tried changing permissions to allow 'rwx' to ALL users to ensure
that it wasn't stopping Smarty from using the library files or creating the
compiled files within templates_c.
The paths are correct, Smarty instantiation works (otherwise how would we
view the pages we already have?)
I'm at my wit's end here, I've tried pretty much anything.
Can you offer any help or suggestions?
Anything would be appreciated, Thanking you in advance.
Oh by the way, the machine it sits on is (unfortunately) a Cobalt RAQ4
housing Redhat 7.
Please enclose relevant past correspondence when replying to this email.
Regards,
Jason Dunbar
Web Developer