If I am using CAKEphp do I need to use smartytemplates too?
No.
Cake has its "own" templating system which uses .ctp
files, which are just straight HTML/PHP files.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With