CakePHP and Smarty(ies)

Published on and tagged with documentation  tutorial

Joe Topjian has written a tutorial about using Smarty, a template engine, with CakePHP. If you ever wanted to use Smarty with CakePHP, go for it! But be warned, there are some restrictions (e.g. no access to the html helper).

2 comments baked

  • Yoeri

    I wonder why you should use a template engine on top of CakePHP? The V in MVC is just like a template engine, not? At least the design is seperated. (beginner’s question :-))

  • cakebaker

    @Yoeri: In my opinion there is no reason to use a template engine on top of CakePHP. But there are people out there who like something like smarty. So if you want to use smarty with CakePHP, you can do it, but personally I don’t recommend it.

© daniel hofstetter. Licensed under a Creative Commons License