Change view path? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Change view path? (/showthread.php?tid=36112) |
Change view path? - El Forum - 11-21-2010 [eluser]Unknown[/eluser] Hi everyone, I'm trying to set up a CI installation with 2 parts: frontend and backend. After searching for a while on this forum, this one is chosen: Code: ci/ The key point is that I move the view folder of each part to the backend and frontend folder in mywebsite. Now I want to set up the view path in order to just call this->load->view(filename) in each controller of each path. One way to change the view path is using this->load->_ci_view_path = ...;. But it seems that I have to write down this line in each controller. How can I change the view path in config files? Change view path? - El Forum - 11-21-2010 [eluser]InsiteFX[/eluser] You HMVC in the WIKI! InsiteFX |