template library for CodeIgniter 2.0 |
[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.
[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 ![]()
[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:
[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!
[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/g...guide.html). You know, make comments at the end of the files, write TRUE/FALSE in capital letters, etc.
[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 ![]() |
Welcome Guest, Not a member yet? Register Sign In |