Load method location - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Load method location (/showthread.php?tid=71173) |
Load method location - osgaldor - 07-15-2018 Hi: I've been studying Code Igniter's source code and I'm puzzled by something. Where is the "load" object? What class is it in? When we say $this-load->view() where is that load object? I looked at the Loader class but that doesn't seem to be it. Can anyone tell me where to find this in the source? Thanks! RE: Load method location - ciadmin - 07-15-2018 It is in the controller class. See system/core/Controller, line 78 - "load" is a controller property referencing an instance of system/core/Loader. RE: Load method location - osgaldor - 07-15-2018 (07-15-2018, 09:56 PM)ciadmin Wrote: It is in the controller class. See system/core/Controller, line 78 - "load" is a controller property referencing an instance of system/core/Loader.Thank you!! |