Welcome Guest, Not a member yet? Register   Sign In
Removing $this-> from codeigniter 3+
#2

i think it's not possible with php (problem of global variable). but i have an idea for this

Code:
$load = $this->load;
$load->view("YOUR_VIEW_HERE");

or kind of helper

Code:
function view($path)
{
    $ci = &get_instance();
    return $ci->load->view($path);
}

and autoload this helper
hope this help.
Follow us at https://twitter.com/LIBRETeamStudio to get a lot of new cool stuff
Reply


Messages In This Thread
Removing $this-> from codeigniter 3+ - by kharota - 12-21-2014, 03:10 PM
RE: Removing $this-> from codeigniter 3+ - by libreteam_studio - 12-22-2014, 02:11 AM
RE: Removing $this-> from codeigniter 3+ - by jlp - 12-31-2014, 04:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB