Part of the EllisLab Network
   
 
Problem in loader (redeclaring a class)
Posted: 08 November 2006 03:49 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  99
Joined  03-16-2006

There is still a problem with the function that checks if a class is already loaded into the core. What i - mistakenly - did is autoloading the language library inside the autoloading config file.

The error it produces:

Fatal error: Cannot redeclare class ci_language in C:\server\xampp\htdocs\ci\system\libraries\Language.php on line 27

Off-course this is wrong because the language file is automatically loaded into the core. Maybe an extra check inside the code could be usefull to prevent these slipups. My quess that this is also the problem when autoloading other core classes.

 Signature 

——-
Marco

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: 66431 Total Logged-in Users: 30
Total Topics: 84795 Total Anonymous Users: 4
Total Replies: 455074 Total Guests: 249
Total Posts: 539869    
Members ( View Memberlist )
Newest Members:  GlennJDylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeer