CodeIgniter Forums
Template Engine Based On CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: Template Engine Based On CI (/thread-62353.html)



Template Engine Based On CI - paysalkharis - 07-05-2015

I think our lovely framework need base pengine. Its not like library u can plug and unplug.
Its like Blade(Blade Format) on laravel or Smarty On Cakephp (TPL Format).  Big Grin
i think it would be very cool feature, and minimizing php code inside view files.  Smile


How about my opinion?
Huh


RE: Template Engine Based On CI - neils - 07-06-2015

(07-05-2015, 08:09 AM)paysalkharis Wrote: I think our lovely framework need base pengine. Its not like library u can plug and unplug.
Its like Blade(Blade Format) on laravel or Smarty On Cakephp (TPL Format).  Big Grin
i think it would be very cool feature, and minimizing php code inside view files.  Smile


How about my opinion?
Huh

I also like template engines, but I wouldn't agree building one into the core. E.g. some people like Smarty - they can use it in CI as a library. Some people hate them (and I understand their point, too), they want to keep coding php in ther views, and you have to let them do so.


RE: Template Engine Based On CI - nasser.man - 07-06-2015

Fuelphp has not default template engin but support many engins built in , i wish codeigniter take such way, add some support for template engines (i like mustache) and make it is to use them in application.


RE: Template Engine Based On CI - roopunk - 07-06-2015

Codeigniter does has its own parsing library.
http://www.codeigniter.com/user_guide/libraries/parser.html
But as they say, they have kept it lean on purpose to maintain high performance.