[TYPO3-ect] Problems with lib/div and smartyView

Holger Rüprich holger at rueprich.de
Wed Feb 13 20:46:54 CET 2008


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