[eluser]docmattman[/eluser]
I have several views in my application/views folder. I want my app to be theme-able. The theme folder is located outside of my application folder. The theme folder would have it's own views folder (i.e. theme/views).
What I'm trying to do is check if a view file exists in the theme view folder and if so, use it, otherwise use the application/views file. The purpose of this is that I can create all the views I need for my application, but the person doing and design work can decide to overwrite my app view with a custom one (in case they want to add more HTML tags or make other changes). I have tried this:
Code:
$this->load->view('/full/path/to/my/theme/views/file.php');
However, this always gives me an error:
Quote:Unable to load the requested file: /full/path/to/my/theme/views/file.php
I know the full file path exists and is readable. I believe the load->view function is restricting view files to only my app folder. Is there a way to load a view from a folder outside my application/views folder?