|
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 |
hassan68 Smarty Rookie
Joined: 27 Apr 2011 Posts: 21
|
Posted: Wed Mar 21, 2012 10:08 pm Post subject: two php file and one tpl |
|
|
can i use two php file for one tpl file? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Mar 22, 2012 3:17 pm Post subject: |
|
|
yes |
|
Back to top |
|
hassan68 Smarty Rookie
Joined: 27 Apr 2011 Posts: 21
|
Posted: Mon Apr 30, 2012 12:39 am Post subject: |
|
|
how we can do this
? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Mon Apr 30, 2012 1:44 am Post subject: |
|
|
file1.php:
$smarty->display('index.tpl');
file2.php:
$smarty->display('index.tpl');
it might help to know what you want to accomplish. |
|
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
|