Reputation: 45
i'm newbie on codeigniter, I just learned to work with codeigniter it's been two week. I'm using in one controller more than 26 functions and each function load a diferent view. My question is when I load for exemple the function X in this controller (XXX.php), is that only the X function loaded? or all the controller (all the file XXX.php), I'm afraid if it makes website too long on loading?
Upvotes: 0
Views: 751
Reputation: 35180
Your Controller will be parsed before it's run (as with all PHP), but it will only call the specific function.
To have a vague idea of what is going on you can use:
$this->output->enable_profiler(TRUE);
Inside one of your functions and then call it....it will display the profiler at the bottom of the page.
For more information on the profiler visit: http://ellislab.com/codeigniter/user-guide/general/profiling.html
Hope this helps :)
Upvotes: 1