Problem with controllers, views and sub-folders[SOLVED] |
[eluser]Cadu de Castro Alves[/eluser]
Hello people. I'm beginner using CI. My app's template structure is based on Wordpress template one. I've 3 files: header.php, sidebar.php and footer.php. When I need to create a view file, I just include these files. But, I'd like to organize each module view in sub-folders like the example below: Code: > module_1 When I call the modules, I got this error: Quote:A PHP Error was encountered index_view.php Code: <?php include($this->template->get('template').'/header.php'); ?> I created a library with some methods to manage my template. Using the method $this->template->get('template') I got the template URI. I'm using this method to map the site path, but I don't works. I didn't find anything in the forum. Could somebody help me?
[eluser]jcopling[/eluser]
A little investigating lead me to this section of the PHP manual. http://www.php.net/manual/en/ref.filesys...-url-fopen It appears that having the allow_url_fopen and allow_url_include disabled can result in an error like the one you are receiving. Hope it helps. |
Welcome Guest, Not a member yet? Register Sign In |