Welcome Guest, Not a member yet? Register   Sign In
where is Controller class in CI
#1

[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.
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB