|
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 |
libk Smarty Rookie
Joined: 29 Dec 2003 Posts: 7
|
Posted: Mon Dec 29, 2003 9:12 am Post subject: why can't parse the {config_load file='url.conf'} |
|
|
i wrote {config_load file='url.conf'} and {#listproduct_url#}
in my test.tpl
(url.conf is a config file of mine, listproduct_url='127.0.0.1/product.php');
than I run test.php(display('test.tpl')
but the page vender me the {config_load file ='url.conf'}, not parse it;
then i right click the mouse and select "view source code";
in the source code i see {#listproduct_url#}also not be replaced with '127.0.0.1/product.php;
why did it happen??
who can help me/?[/i] |
|
Back to top |
|
libk Smarty Rookie
Joined: 29 Dec 2003 Posts: 7
|
Posted: Tue Dec 30, 2003 6:43 am Post subject: |
|
|
no one help me ??
5555~~~~~~~~~~55555 |
|
Back to top |
|
Duncan Smarty Pro
Joined: 16 Dec 2003 Posts: 166
|
Posted: Tue Dec 30, 2003 2:03 pm Post subject: |
|
|
This sounds as if smarty doesn't run / parse at all. Please add the code of your test.php in here and s.o. might be able to help out. |
|
Back to top |
|
libk Smarty Rookie
Joined: 29 Dec 2003 Posts: 7
|
Posted: Fri Jan 16, 2004 9:21 am Post subject: |
|
|
Duncan wrote: | This sounds as if smarty doesn't run / parse at all. Please add the code of your test.php in here and s.o. might be able to help out. |
hi !
thank you for your reply
and i have work out the problems;
it's because I include the file use
{include file='test.tpl'} in index.htm and in index.php I display(
I think it will be the config variables in test.tpl
but it didn't
So i know Smarty won't parse the variables in the include file
Does it true?? |
|
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
|