$this keyword in view in CodeIgniter |
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)
|
Messages In This Thread |
$this keyword in view in CodeIgniter - by Mansfield2565 - 10-22-2019, 12:05 AM
RE: $this keyword in view in CodeIgniter - by InsiteFX - 10-22-2019, 03:20 AM
RE: $this keyword in view in CodeIgniter - by dave friend - 10-22-2019, 11:23 AM
|