First of all I want to thank all people from helping me make this happen. I want o give it to the community to just see where it goes. I know youguys/girls can put a twist on it a may not be able to, and that is just interesting to me to find out where this lib will go. Just like any other CI lib. My library uses other libraries in contrastto make a complete(almost) templated modulated cms system with great easy. When your setup is complete you will be able to drop in a new module or a view inside the smarty template dir or if not using smarty you can modify code. I won’t do this for you and I would ask not to please ask because this threads main focus is on smarty and modular extensions in unison to make a complete solution for dynamic views and templated modules. when you have this setup that I will explain, I would suggest to only store your templates in the templated schema outlined for the library to work and not use any views(although you can, but why would you want to when smarty is here)with smarty displaying variables data is a snap or even doing a foreach loop. Plus, in the smarty_parser.php inside config dir I’ve set it to modify the right and left delimiter to make smarty code look like html comments. This is great, you know why? Because then if you have a developer that knows only good development and not such good design. Let him do it and if you have on the other hand a good designer who doesn’t know code he can just know to work around the html comment. Plus everything is dynamically loaded into templates from auto loading environ. It loads all the variables on every page load(I will fix this so it doesn’t load all pages but only needed ones later and also super size functions later as well) the in side your default controller it mergers the array into the array that gets passed to the modules function/method(for the most part if you create a new variable inside the config you can use it inside your template just like that, in my tests it has shown this. haven’t checked lately.) I know for sure I can minimize my sql queries to be less by super sizing them. I will get to this later, newer versions. Basically where the meat of the lib control lies is in the app/config/environ.php file. this is where it determines where it will get the rest of the configuration from. The database(doesn’t load config file from filesystem inside templates/template_name/config/) or the filesystem(inside templates/template_name/config/) the reason why I have done this is when you have your templates config stored inside db you can modify it easier from admin login and then make the modifications reflect on the filesystem where the template file is located. Maybe something drag-and-drop with JQuery. Anyway, The rest I’m sure ya’ll can figure out . I hope this helps someone learn CI. You can use this lib for commercial use or personal use as long as my header stays inside the files.
you can get it here
Please let me know of any bugs, would be greatly appreciated.
