Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If I am using CAKEphp do I need to use smartytemplates too?

Tags:

smarty

cakephp

If I am using CAKEphp do I need to use smartytemplates too?

like image 640
adam Avatar asked Dec 17 '22 03:12

adam


2 Answers

No.

Cake has its "own" templating system which uses .ctp files, which are just straight HTML/PHP files.

like image 151
deceze Avatar answered Dec 19 '22 16:12

deceze


You can integrate pretty much anything with Cake, including Smarty. When I first started, I thought about doing it and my advice is don't. You just don't need to. Cake's own templating system is fully featured and comes with a lot of helpers, integration, convention etc. (not to mention online wisdom).

Having another template system will only make life complicated. Apart from that, think of the practicalities of pushing two codebases around, maintaining them and wearing different hats depending on which part you're working on.

CakePHP is delivered with all you need to build most web applications.

like image 39
Leo Avatar answered Dec 19 '22 17:12

Leo