Welcome Guest, Not a member yet? Register   Sign In
Having troubles with Loader class and HMVC
#1

[eluser]Twisted1919[/eluser]
Hi all,
My problem is that i want to rename the views folder name into templates(makes more sense for my new project) without hacking into core files.

Based on that, i thought that extending the CI_Loader class would do the trick .
So i have my MY_Loader.php:
Code:
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

class MY_Loader extends CI_Loader{

public function __construct()
    {
        parent::CI_Loader ;
        $this->_ci_view_path = APPPATH.'templates/';

    }
But it just jumps over it, it doesn't load it at all.
Might this be an issue because of the HMVC library ?
Any suggestions ?
Thanks.


Messages In This Thread
Having troubles with Loader class and HMVC - by El Forum - 11-29-2009, 12:43 PM
Having troubles with Loader class and HMVC - by El Forum - 11-29-2009, 01:08 PM
Having troubles with Loader class and HMVC - by El Forum - 11-29-2009, 01:45 PM
Having troubles with Loader class and HMVC - by El Forum - 11-29-2009, 05:32 PM
Having troubles with Loader class and HMVC - by El Forum - 11-30-2009, 05:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB