![]() |
template library for CodeIgniter 2.0 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: template library for CodeIgniter 2.0 (/showthread.php?tid=38359) |
template library for CodeIgniter 2.0 - El Forum - 02-17-2011 [eluser]Basketcasesoftware[/eluser] Yep. Read that. In fact it requires it to be able to use the parser feature. Actually had to read up on Dwoo when I saw that posting. Link looks interesting, but I don't think Phil has had time to keep it up to date. The broken link was a definite surprise. template library for CodeIgniter 2.0 - El Forum - 02-18-2011 [eluser]huzzi[/eluser] Thanks guys ![]() template library for CodeIgniter 2.0 - El Forum - 02-18-2011 [eluser]duellsy[/eluser] Yeah, this isn't a fully fledged templating system, more a way to simply and organise the page build process. It's an ever evolving piece, so in time it'll get there ![]() template library for CodeIgniter 2.0 - El Forum - 06-21-2011 [eluser]Skripatch[/eluser] I have made a little change to the library, i made the load_config_file function public, to have an ability to switch between templates from the controller. Code: $this->template->load_config_file('path to the file'); attached is the updated library: template library for CodeIgniter 2.0 - El Forum - 06-21-2011 [eluser]Skripatch[/eluser] please ignore previous fixes to the template, because they did not match the codeigniter manner at all and were insecure. I have made more changes now to have the library work with the CI config class. If you need to swap templates according to a controller here is the usage: (this goes in your controller __construct or any other function) Code: $this->config->set_item('template', 'website'); changes made to the config file and the library itself! template library for CodeIgniter 2.0 - El Forum - 06-24-2011 [eluser]PQMailer[/eluser] Great work guy ![]() But I think it would be nice if you follow the PHP Style Guide (http://localhost/mail-image/user_guide/general/styleguide.html). You know, make comments at the end of the files, write TRUE/FALSE in capital letters, etc. template library for CodeIgniter 2.0 - El Forum - 06-25-2011 [eluser]Skripatch[/eluser] Thanks all! I am working on some huge project at this time and I`m using this library in it. There will be more changes and fixes when I finish this project, then I`ll post the final version here. I`ll add the following features in the near future: * css and js aggregation * dynamic region assignment with "set_content" function (not just the content) Thanks for the tips PQMailer ![]() |