Part of the EllisLab Network
   
 
V1.5 - Extending Loader class
Posted: 01 November 2006 09:47 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  72
Joined  04-26-2006

Version 1.5 user-guide says:

Note: The Database classes can not be extended or replaced with your own classes, nor can the main Controller class. All other classes are able to be replaced/extended.

The Loader class cannot be extended as well. (Edit: some BS was here :P )

Edit: issue only addresses PHP4

Profile
 
 
Posted: 03 November 2006 06:10 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006

*sry bout doublepost*

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 03 November 2006 06:30 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  489
Joined  06-16-2006

Ah, yes. I have located the error.

In PHP 4, the loader class is loaded at a early state, so the base class can extend it. And that is where the problem lies.

...
class
CI_Base extends CI_Loader
...

It will always load the core library.

I cannot see any easy solution though. I’ll leave that to Rick raspberry

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

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: 61059 Total Logged-in Users: 28
Total Topics: 73868 Total Anonymous Users: 1
Total Replies: 398476 Total Guests: 373
Total Posts: 472344    
Members ( View Memberlist )
Newest Members:  bnolenstanjadebieSan2kakifemreSchottec2kmeenazterjinFuadgeorge_k_allis