Welcome Guest, Not a member yet? Register   Sign In
Can I? Move Views
#1

[eluser]zeedy2k[/eluser]
Is there a way I can move view files into the CI Root folder?? so Public_html-> Views and Public_html->system

?

Cheers
Robert
#2

[eluser]Pascal Kriete[/eluser]
It is possible, but only in PHP5. You have to extend the Loader. Something like this should work:

libraries/MY_Loader.php:
Code:
class MY_Loader extends CI_Loader {

    function MY_Loader()
    {
        parent::CI_Loader();
        $this->_ci_view_path = APPPATH.'../views/';  //Whatever this is
    }
}
#3

[eluser]zeedy2k[/eluser]
Excellent... I use php5 and most hosts are supporting that now anyway..

Thanks for the post.




Theme © iAndrew 2016 - Forum software by © MyBB