Template library, written for the CodeIgniter PHP-framework |
[eluser]CW[/eluser]
I'm trying to learn the Template library, written for the CodeIgniter PHP-framework. I've be able to create a basic template configuration however I'm having some difficulty interpreting groups as discussed in the documentation. In particular, under Configuration -> Setting The Default Template, there is a reference to a "group set" (i.e., $template['active_group'] = 'default'. Further on in the documentation IV. Dynamically Manipulating Template it appears setting up groups is necessary to switch templates but I cannot determine how to define groups in the template.php configuration file. I'm just trying to work my way through IV. Dynamically Manipulating Template of the documentation and am not able to continue with the 'rss' example because it appears I need to define the active_group in the configuration file. Any guidance will be appreciated. Thanks, Chris
[eluser]adgezaza[/eluser]
I am having a similar issue trying to define a new template group in the template.php config file. Can anybody post example code on how this works?
[eluser]InsiteFX[/eluser]
If your talking about the database.ph config file it is like this. Code: $active_group = 'default'; And if your talking about a Library Template then which one ? InsiteFX
[eluser]adgezaza[/eluser]
talking about this library for CI http://williamsconcepts.com/ci/codeignit...rence.html here is my stack overflow question which goes into more depth on the situation. http://stackoverflow.com/questions/53202...te-library
[eluser]InsiteFX[/eluser]
It should work the same as I showed you above for the database one! InsiteFX
|
Welcome Guest, Not a member yet? Register Sign In |