Part of the EllisLab Network
   
 
Auto-Loading Config, Language, etc. Based on Controller
Posted: 16 July 2008 12:02 PM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  01-02-2008

I have already implemented this in my CodeIgniter apps and I find it a great help in localizing and setting up distributed apps based on CodeIgniter. The idea is that you have config and language files based on the name of the controller class name, and CI loads them automatically.

Profile
 
 
Posted: 17 July 2008 03:46 AM   [ Ignore ]   [ # 1 ]  
Sr. Research Associate
RankRankRankRankRank
Total Posts:  3169
Joined  07-14-2006

I’m just curious how you do it.

But I have to say using convenience made me write cleaner code. I load models, views and even validation files.

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: 62653 Total Logged-in Users: 33
Total Topics: 77188 Total Anonymous Users: 0
Total Replies: 416681 Total Guests: 235
Total Posts: 493869    
Members ( View Memberlist )