|
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 |
mikeken Smarty Regular
Joined: 13 Aug 2003 Posts: 57 Location: MN
|
Posted: Mon Aug 18, 2003 8:28 pm Post subject: when smarty comes to a variable |
|
|
Hi, it seems If have a variable in my template, and in the php file nothing is assigned to it. the template file and any templates displayed from there after nothing is displayed. For example. I have a php file which displays header.tpl, main.tpl, footer.tpl. If I have a variable in main.tpl and nothing is assigned to it in the php file only header.tpl is displayed, main.tpl and footer.tpl are not displayed.
Im guessing this is how smarty was developed to react to such a case. Do you know how I can change it to just remove the delimiters and anything inside of it.
Or if you think it might be somethign else couldya help me out?
Thanks.
--Mike |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Aug 18, 2003 8:35 pm Post subject: |
|
|
the template containing the unassigned variable should be displayed, just the place where the variable was placed should be empty. set php's ini-settings error_reporting to E_ALL and display_errors to TRUE to investigate what's going wrong in your setup (and of course always have a look at the html-source and not only at the browser's output). |
|
Back to top |
|
mikeken Smarty Regular
Joined: 13 Aug 2003 Posts: 57 Location: MN
|
Posted: Mon Aug 18, 2003 9:19 pm Post subject: ahah |
|
|
For the record, those setting were both on in my php.ini file
Still not working yet, I will look into it more. |
|
Back to top |
|
mikeken Smarty Regular
Joined: 13 Aug 2003 Posts: 57 Location: MN
|
Posted: Mon Aug 18, 2003 9:28 pm Post subject: |
|
|
Well duh, with me, I usually ask really stupid questions.
I just got back from work where we use the icky icky icky php-template engine software.
We dont use the $ sign before a variable. In smarty you do. That was the problem.
Thanks anyways |
|
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
|