php - $this keyword in view in CodeIgniter -
I am trying to understand how The core / controller is calling PPP core / loader.php, which then calls _ci_load () which in turn this Loader class should not mention How is the reference to the In my opinion, you get $ $ for this-> under a view file. View () must be called. $ Not-it-> Load-> () See that the load () function inside the loader is not available This controller is a class variable of the base class. I.e, Please note: I am trying to understand CodeIgniter internals. I fully understand how to embed visual files in other visual files as a CodeIgniter user please use use it $ this- & gt; ; Do not leave the answer given about load (). The last time I checked, Check Out: Check: line 778 $ this-> load-> gt; Inside of a view file in view () CodeIgniter.
does
$ this at point ('/ path / to / view');
$ this controller?
$ this-> Load = & amp; Load_class ('Loader');
$ this was of class
CI_Loader , try
var_dump ($ this); Inside a scene.
is_loaded (); Returns an array with pre-loaded classname and their nickname from the main container.
$ this-> Load then the example of the
CI_Loader inside a controller.
Comments
Post a Comment