[TYPO3-ect] Problems with lib/div and smartyView
Daniel Brüßler
info at -remove-patchworking.de
Wed Feb 13 22:24:58 CET 2008
Hello Holger,
I didn't have time to do anything with it, so I can't help -- see what
Steffen Kamper added:
https://typo3xdev.svn.sourceforge.net/svnroot/typo3xdev/tx_lib/trunk
http://wiki.typo3.org/index.php/Subversion
see the discussion about the smarty-extensions here in the ECT-list via
http://support.typo3.org
Cheers!
Daniel
> Hi list,
>
> since yesterday I tried to get an extension based on lib/div with smarty
> templates running.
>
> Because smartyView requires the extension rtp_smarty. I tried it to use
> it, until I found the thread from Elmar Hinze (rtp_smarty to smarty?)
> which said, that the extension rtp_smarty has by now been moved to smarty.
>
> It would be good if the extension rtp_smarty could be tagged as
> obsolete, like it was proposed in the list.
>
> After knowing this I changed the class smartyView to use smarty instead
> of rtp_smarty. Still I couldn't get my extension to display the template.
>
> So I looked at the code in detail and found out, that the render method
> from smartyView misses the following line:
> $this->set('_content', $out);
>
> Besides I thought it be cool if the render method in smartyView also
> offers the possibility to use either a configuration key or the filename
> as the phpTemplateEngine class does. So I extracted the relevant code
> from phpTemplateEngine and placed it as a new method in the parent class
> viewBase. This way both subclasses can access the functionality.
>
> Now I wanted to ask if it would be any help to give you access to my
> changed files?
>
> Greetings,
> Holger
More information about the TYPO3-team-extension-coordination
mailing list