![]() |
parse all config vars for all regions - 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: parse all config vars for all regions (/showthread.php?tid=17000) |
parse all config vars for all regions - El Forum - 03-23-2009 [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. |