Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

why can't parse the {config_load file='url.conf'}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
libk
Smarty Rookie


Joined: 29 Dec 2003
Posts: 7

PostPosted: Mon Dec 29, 2003 9:12 am    Post subject: why can't parse the {config_load file='url.conf'} Reply with quote

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
View user's profile Send private message
libk
Smarty Rookie


Joined: 29 Dec 2003
Posts: 7

PostPosted: Tue Dec 30, 2003 6:43 am    Post subject: Reply with quote

no one help me ??
5555~~~~~~~~~~55555
Back to top
View user's profile Send private message
Duncan
Smarty Pro


Joined: 16 Dec 2003
Posts: 166

PostPosted: Tue Dec 30, 2003 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
libk
Smarty Rookie


Joined: 29 Dec 2003
Posts: 7

PostPosted: Fri Jan 16, 2004 9:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP