parse all config vars for all regions |
[eluser]MeDHaT[/eluser]
Hi All, firstly, Thanks for the nice template library, Colins ![]() template library Is there any way to replace all config variables with their values without specifying the region? as example: I need to retrieve image_path value from configs array and use it in my header,content and footer regions. should I copy $this->template->write 3 times? on another note, maybe we can write a function to automatically parse all config vars with the shape {var} with their corresponding values if found in any region file, on template render as example. that will save us a lot of code, I think. Thanks in advance. Note: I'm new to CI, so I'm not sure if this can be done in a different way. |
Welcome Guest, Not a member yet? Register Sign In |