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

Holger Rüprich holger at rueprich.de
Fri Feb 15 18:18:03 CET 2008


Hi guys,

@ Daniel

 > I tried to find the error. When typing in rtp_smarty in EM it doesn't
 > find the extension. question: did it before?

After updating my extension list in the EM I found the new version of 
rtp_smarty 0.9.7 tagged as 'obsolete'. Perfect :) But when searching on 
typo3.org I still find the older 0.9.5 version, which is tagged as 
'beta'. But I gues this is just a matter of time?

@ Simon

 > I haven't tried Steffen's latest version, but it looks ok to me. Can
 > you be a bit more specific with what you where expecting?

I'm not sure if I get you right on this one.

If you mean the extracted code: I just looked at the new version in the 
svn trunk, but couldn't find the classes viewBase, smartyView or 
phpTemplateEngine? In the version I currently have (Revision: 7333 
2007-11-30) the render method in the class phpTemplateEngine had the 
folowing code at the beginning:

$this->checkController(__FILE__, __LINE__);
$path = $this->getPathToTemplateDirectory();
$path .= substr($path, -1, 1) == '/' ? '': '/';
$path .= 
strlen($this->controller->configurations->get($configurationKeyOrFileName)) 

			? $this->controller->configurations->get($configurationKeyOrFileName) 
: $configurationKeyOrFileName;
$path .= substr($path, -4, 4) == '.php' ? '' :  '.php';

And this is what I extracted to the viewBase class, so that both 
subclasses can access it.

Regards,
Holger


More information about the TYPO3-team-extension-coordination mailing list