Welcome Guest, Not a member yet? Register   Sign In
$this keyword in view in CodeIgniter
#3

The reason $this is still the controller is that view files are not classes. Instead they are simply included into the current scope - usually the controller. In other words $this->load->view('some_view') is a fancy, high-powered way to say include(path/to/views/some_view.php)
Reply


Messages In This Thread
RE: $this keyword in view in CodeIgniter - by dave friend - 10-22-2019, 11:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB