[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/
application/
back/
config/
controllers/
errors/
helpers/
hooks/
language/
libraries/
models/
front/
config/
controllers/
errors/
helpers/
hooks/
language/
libraries/
models/
cache/
codeigniter/
database/
fonts/
helpers/
mywebsite/
backend/
// view files for backend stored here
frontend/
// view files for frontend stored here
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?