|
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 |
danny36 Smarty Rookie
Joined: 14 Jul 2004 Posts: 27 Location: Italy - Arezzo (Tuscany)
|
Posted: Fri Apr 06, 2018 9:28 am Post subject: How to make main tempalte for all actions? |
|
|
I want to build an application that have a single main template with inside a tamplate variable that display a resulting of url action.
Example:
When I call this url
http:www.mysite/user
resulting of user.php and user.tpl it's put in $content variable of main.tpl.
main.tpl
Code: |
<html>
<head></head>
<body>
{$content}
</body>
</html>
|
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
danny36 Smarty Rookie
Joined: 14 Jul 2004 Posts: 27 Location: Italy - Arezzo (Tuscany)
|
Posted: Tue Apr 17, 2018 9:45 am Post subject: |
|
|
but with extends I must include this tag in all templates with also block tag. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Apr 18, 2018 11:09 pm Post subject: |
|
|
Yes, and?… |
|
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
|