|
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 |
eniac Smarty Rookie
Joined: 14 Jun 2003 Posts: 7
|
Posted: Thu Oct 09, 2003 8:18 pm Post subject: Logical probleme |
|
|
Hallo,
I've got one page index.php if someone want's to visit an other part of the site I want it to be
index.php?page=2
Now I'm not quite sure how to implement this using smarty, what I would do is the following.
a case structure with each value a function bound to it.
If page = 2 function page_2() get exceuted.
page_2 point to the template file page_2.tpl
and so and
I hope I made myself clear here my english isn't that brilliant.
Regards Jonas |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Thu Oct 09, 2003 8:22 pm Post subject: |
|
|
handle this fully in php. for example set a variable $template according to your $_REQUEST-vars and do $smarty->display($template) in the end. |
|
Back to top |
|
eniac Smarty Rookie
Joined: 14 Jun 2003 Posts: 7
|
Posted: Thu Oct 09, 2003 8:33 pm Post subject: |
|
|
thnx for your very fast reply. |
|
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
|