I read an article about this and downloaded the CSmartyViewRenderer class but according to the article I’d have to edit the framework files directly to override the default view renderer. Is there a more elegant way to do this?
Also I’m not sure where I’d include the Smarty classes…
The difference resides in the extension, Yii uses "Classname.php" and Smarty uses "Classname.class.php" … is there a way to specify a different extension (spl_autoload_extensions?)
Thanks for your patience and feedback Qiang!
If and when I manage to get a satisfactory set up working with Smarty I’ll definitely write it up so others can learn from my experience!
I would suggest not to try autoloading smarty classes because it doesn’t worth the effort (it doesn’t improve performance anyway). If you really want to do so, you can write an autoload function and register it using spl_autoload_extensions BEFORE you include yii.php.
However, I’m considering rewriting our application to use Yii (custom mvc at the moment) and since its already done with Smarty and all the templates and view stuff is already done, for now it really makes no sense to complicate things even more! I hate Smarty but the rest of our team likes it…
I was reading the artycle about Smarty into Yii, and I try to download de extention, but the download link no longer exists. I try to SVN but there is nothing yet. Some one know how can I download it?