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

Tutorial needed: Smarty3 & Zend Framework 1.10

 
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 3
View previous topic :: View next topic  
Author Message
flo1810
Smarty n00b


Joined: 28 Apr 2006
Posts: 3

PostPosted: Thu Jul 29, 2010 3:45 pm    Post subject: Tutorial needed: Smarty3 & Zend Framework 1.10 Reply with quote

Is there a way to get smarty3 on ZF 1.10 to work?
Back to top
View user's profile Send private message
mszkodzinski
Smarty n00b


Joined: 08 Aug 2010
Posts: 1

PostPosted: Sun Aug 08, 2010 2:48 pm    Post subject: Reply with quote

Yes, I describe it here: http:// technology.mediovski.pl/2010/08/08/smarty-3-0-rc3-zend-framework-1-10-4

I wrote how to connect Smarty 3 with Zend Framework 1.10 and call zend view helpers in smarty templates.
Back to top
View user's profile Send private message
mvalviar
Smarty Rookie


Joined: 16 Aug 2010
Posts: 8

PostPosted: Mon Aug 16, 2010 8:10 am    Post subject: Reply with quote

mszkodzinski wrote:
Yes, I describe it here: http:// technology.mediovski.pl/2010/08/08/smarty-3-0-rc3-zend-framework-1-10-4

I wrote how to connect Smarty 3 with Zend Framework 1.10 and call zend view helpers in smarty templates.


Hello mszkodzinski. I read your guide and it works just fine. Thank you very much.

One problem though is that the zend helpers aren't recognized in the child templates. Like I can do {url} on a base.tpl but if I have
Code:

{extends file="base.tpl"}
{url}
. I get an error saying the tag is not recognized. I'm not sure where the problem lies. Is it a deficiency in smarty? I there anything else I need to do?

I did try to ask this on your blogpost but I can't leave a comment good thing I fould you here.[/code]


Last edited by mvalviar on Mon Aug 16, 2010 4:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Mon Aug 16, 2010 3:12 pm    Post subject: Reply with quote

NOTE: In the child templates everything outside the {extends} or {block} tag sections is ignored.

The {extends } tag has a 'file' attribute, but no 'name' attribute.

{extends file="base.tpl"}
Back to top
View user's profile Send private message
mvalviar
Smarty Rookie


Joined: 16 Aug 2010
Posts: 8

PostPosted: Mon Aug 16, 2010 4:43 pm    Post subject: Reply with quote

Corrected. Sorry about that.
Back to top
View user's profile Send private message
sjwdavies
Smarty n00b


Joined: 26 Sep 2011
Posts: 1

PostPosted: Mon Sep 26, 2011 9:08 am    Post subject: Reply with quote

Sorry to bring up an old post.

I've checked out the tutorial at that URL but it doesn't seem to work (translated from Polish to English).

Does you perhaps have the files as a zip file I could download and take a closer look at?
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 3 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