Welcome Guest, Not a member yet? Register   Sign In
Popcorn as a template engine in CodeIgniter
#1

[eluser]Awilum[/eluser]
Hello Smile
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:
[Image: 2011-05-08_1935.png]

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 Smile
Code:
$this->templates->assign('msg','Hello CI !');
$this->templates->draw('welcome_message');
#2

[eluser]Glazz[/eluser]
Hello,

Not going to use it cuz i dont need it, but looks very nice and simple Smile
#3

[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
#4

[eluser]eggzy[/eluser]
This looks good, I'll give it a try, thanks.
#5

[eluser]umefarooq[/eluser]
i can not see any difference between popcorn and raintpl both look same

http://www.raintpl.com/Quick-Start/




Theme © iAndrew 2016 - Forum software by © MyBB