Popcorn as a template engine in CodeIgniter |
[eluser]Awilum[/eluser]
Hello ![]() I made this template engine and connected it to CI) 1) Download Popcorn Template Engine(http://popcorn.template-cms.org) and extract into \application\libraries\ 2) Download Templates.zip and extract into \application\libraries\ Example: ![]() 3) Create folder for comiled templates \templates_c\ in the root 4) In the controller load the library. Code: $this->load->library('templates'); 5) Use Popcorn Template Engine ![]() Code: $this->templates->assign('msg','Hello CI !');
[eluser]Glazz[/eluser]
Hello, Not going to use it cuz i dont need it, but looks very nice and simple ![]()
[eluser]Vheissu[/eluser]
Nice work dude. If you want, feel free to write a driver for a parser library I've developed for Codeigniter which uses Codeigniter Drivers functionality to allow a user to use multiple template engines to render their views. https://github.com/Vheissu/Plenty-Parser
[eluser]umefarooq[/eluser]
i can not see any difference between popcorn and raintpl both look same http://www.raintpl.com/Quick-Start/ |
Welcome Guest, Not a member yet? Register Sign In |