Part of the EllisLab Network
   
 
How does a controller know where to source Controller?
Posted: 22 February 2007 04:21 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  83
Joined  01-12-2007

I made my own small MVC inspired by CI for practice and mabey use but i don’t undertand how this works:

When i create a new cotroller e.g. Mycontroll extends Controller how does the my controller file know where to find the base Controller class?
I mean my controller file doesn’t give CI any clue as to where to look for the Controller class but it still extends my class, no problem.
In my own MVC i have solved this by including the Controller class but i prefer the clean solution CI has.

Anyone has a clue how this is done?

Profile
 
 
Posted: 22 February 2007 01:12 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  472
Joined  09-26-2006

index.php sets the system and application path constants and calls CodeIgniter.php

I think you may find your answer in there. Line 109 onwards.

 Signature 

Old programmers never die, they just parse away.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 64458 Total Logged-in Users: 17
Total Topics: 80971 Total Anonymous Users: 1
Total Replies: 435713 Total Guests: 180
Total Posts: 516684    
Members ( View Memberlist )