Monday, January 20, 2014

Re: Will combining cakephp with web templates like Smarty or Twig make front-end coding easier?

I am doing some reading. Here is one thing that puzzles me. One advantage of web template engines is that they separate presentation and logic. The same can be said about MVC frameworks like Cakephp. Then, why do we combine both together since any single one can do the separation? Did I miss out something? What are the pros and cons? 

On Monday, January 20, 2014 11:45:33 PM UTC+8, José Lorenzo wrote:
It helps to some extent, specially keeping the views safe from XSS attacks. Some would argue that it does not make your views more readable, I think it is a matter of preference. Here you have a CakePHP plugin for working with Twig:

https://github.com/WyriHaximus/TwigView

On Monday, January 20, 2014 4:32:03 PM UTC+1, Sam wrote:
Cakephp is good for back-end work. Web templates like Smarty or Twig is used for front-end work. Will combining cakephp with web templates like Smarty or Twig make front-end coding easier? Is this advisable and has it been done before?

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: