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:  118
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:  2854
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: 61048 Total Logged-in Users: 17
Total Topics: 73851 Total Anonymous Users: 1
Total Replies: 398359 Total Guests: 310
Total Posts: 472210    
Members ( View Memberlist )