CodeIgniter Forums

Full Version: where is Controller class in CI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]suba[/eluser]
Hi,
am new in this framework. but have good experience from PHP.
Every class extends Controller class.But controller class is not included in same page using require_once() or other function. so how to call controller class without include.
But this framework already extends Controller class in every page without include or require.
so how is it possible.
Please explain to me..
awaiting for reply.

El Forum

[eluser]Zorancho[/eluser]
It goes by the MVC pattern. First the index.php file, constants are being defined and paths of the system and application folders, then system/codeigniter/CodeIgniter.php file is being called and on line 148 in it the Controller class is being called. Have a look at the CodeIgniter.php file and all the files that it includes there and what those files do.