|
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 |
flo1810 Smarty n00b
Joined: 28 Apr 2006 Posts: 3
|
Posted: Thu Jul 29, 2010 3:45 pm Post subject: Tutorial needed: Smarty3 & Zend Framework 1.10 |
|
|
Is there a way to get smarty3 on ZF 1.10 to work? |
|
Back to top |
|
mszkodzinski Smarty n00b
Joined: 08 Aug 2010 Posts: 1
|
Posted: Sun Aug 08, 2010 2:48 pm Post subject: |
|
|
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 |
|
mvalviar Smarty Rookie
Joined: 16 Aug 2010 Posts: 8
|
Posted: Mon Aug 16, 2010 8:10 am Post subject: |
|
|
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 |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Mon Aug 16, 2010 3:12 pm Post subject: |
|
|
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 |
|
mvalviar Smarty Rookie
Joined: 16 Aug 2010 Posts: 8
|
Posted: Mon Aug 16, 2010 4:43 pm Post subject: |
|
|
Corrected. Sorry about that. |
|
Back to top |
|
sjwdavies Smarty n00b
Joined: 26 Sep 2011 Posts: 1
|
Posted: Mon Sep 26, 2011 9:08 am Post subject: |
|
|
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 |
|
|
|
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
|