php - $this keyword in view in CodeIgniter -


I am trying to understand how $ this-> load-> gt; Inside of a view file in view () CodeIgniter.

The core / controller is calling PPP core / loader.php, which then calls _ci_load () which in turn does

this Loader class should not mention $ this at point ('/ path / to / view');

How is the reference to the $ this controller?

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, $ this-> Load = & amp; Load_class ('Loader');

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, $ this was of class CI_Loader , try var_dump ($ this); Inside a scene.


Check Out:

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.


Check:

line 778

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -