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

Search found 27 matches
Smarty Forum Index
Author Message
  Topic: Smarty and TinyMVC - One main template for all controllers
danny36

Replies: 4
Views: 18305

PostForum: Frameworks   Posted: Wed Apr 18, 2018 7:25 am   Subject: Smarty and TinyMVC - One main template for all controllers
Hi mohrt, thank you for reply.

I have tried template inheritance but I don't like to put in all child templates the father extends tag.
It's not possible to assign a template variable from php wi ...
  Topic: How to make main tempalte for all actions?
danny36

Replies: 3
Views: 4017

PostForum: General   Posted: Tue Apr 17, 2018 9:45 am   Subject: How to make main tempalte for all actions?
but with extends I must include this tag in all templates with also block tag.
  Topic: How to make main tempalte for all actions?
danny36

Replies: 3
Views: 4017

PostForum: General   Posted: Fri Apr 06, 2018 9:28 am   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

res ...
  Topic: Smarty and TinyMVC - One main template for all controllers
danny36

Replies: 4
Views: 18305

PostForum: Frameworks   Posted: Thu Apr 05, 2018 10:21 am   Subject: Smarty and TinyMVC - One main template for all controllers
I try to build a basic project with smarty+tinymvc and I want to have a single index.tpl file where I put html, head and body tags then all controllers page have a specific tpl but I want to put the r ...
  Topic: Smarty and TinyMVC - Error autoloader!
danny36

Replies: 14
Views: 40563

PostForum: Frameworks   Posted: Thu Apr 05, 2018 9:52 am   Subject: Smarty and TinyMVC - Error autoloader!
rdg thank you very much!!!
  Topic: How to create single main template?
danny36

Replies: 7
Views: 8590

PostForum: General   Posted: Tue Jun 13, 2017 2:11 pm   Subject: How to create single main template?
If I ask for help maybe I'm not reach the solution.

Somebody else can help me?
  Topic: How to create single main template?
danny36

Replies: 7
Views: 8590

PostForum: General   Posted: Tue Jun 13, 2017 7:56 am   Subject: How to create single main template?
I'm sorry but i can't find any specific example in the documentation of smarty.
  Topic: How to create single main template?
danny36

Replies: 7
Views: 8590

PostForum: General   Posted: Thu Jun 01, 2017 12:29 pm   Subject: How to create single main template?
ok thank you but how to?

I have:

[list=]page1.php + page1.tpl
page2.php + page2.tpl
page3.php + page3.tpl[/list]

and in index.php I have:

$smarty->assign("content", $page); ...
  Topic: How to create single main template?
danny36

Replies: 7
Views: 8590

PostForum: General   Posted: Thu Jun 01, 2017 7:36 am   Subject: How to create single main template?
Hello to all,

I would like to a achieve to have one single template with this:

<html>
<head></head>
<body>
{load content here}
</body>
</html>

when I ...
  Topic: php while on a object!
danny36

Replies: 1
Views: 5161

PostForum: General   Posted: Tue Nov 23, 2004 8:41 am   Subject: php while on a object!
I have use the pear:calendar for my web project but now I want apply smarty to this calendar. My problem is in this code:

while ($Week = $Month->fetch())
{
echo " ...
  Topic: Doing a while loop in Smarty (looping using an object)
danny36

Replies: 4
Views: 7783

PostForum: General   Posted: Tue Nov 23, 2004 8:23 am   Subject: Doing a while loop in Smarty (looping using an object)
another bester idea?! Wink
  Topic: Italian docs
danny36

Replies: 19
Views: 25535

PostForum: General   Posted: Tue Nov 02, 2004 3:01 pm   Subject: Italian docs
Laughing
great thanks!!!
  Topic: Italian docs
danny36

Replies: 19
Views: 25535

PostForum: General   Posted: Tue Nov 02, 2004 9:02 am   Subject: Italian docs
ciao Luca, che piacere trovare un italiano in questo forum!
si è vero non cè una traduzione ufficiale del manuale ma navigando ne ho trovata una abbastanza buona, questo è il link:

http://www.myph ...
  Topic: populate an associative array in tpl
danny36

Replies: 12
Views: 58746

PostForum: Smarty Development   Posted: Fri Oct 29, 2004 7:06 am   Subject: populate an associative array in tpl
for example, I've a template with this code:
test4: ["test1", "test2", "test3"] whole another settings, how can I give the value (test1,test2,test3) in block ...
  Topic: populate an associative array in tpl
danny36

Replies: 12
Views: 58746

PostForum: Smarty Development   Posted: Thu Oct 28, 2004 4:06 pm   Subject: populate an associative array in tpl
yes now work fine! Laughing thanks

one another question, I can access to variable inside the block from the another plugin (my custom plugin) ??? how to do this? Wink
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP