Part of the EllisLab Network
   
 
Is it a reserved name? 
Posted: 11 May 2008 07:27 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  613
Joined  04-20-2006

Hi,

I tried to name a controller “directory.php” but I get a “Fatal error: Cannot redeclare class Directory” error message.

Is Directory a reserved name? If yes, then it need to be added to the reserved names user guide page.

 Signature 

All CodeIgniter resources in 1 place?
http://www.codeigniterdirectory.com (Did you know we are converting this directory to Linkster? We need a Graphic designer, join us!)

My website: Création de sites Genève, Too Pixel

Profile
 
 
Posted: 11 May 2008 08:21 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  730
Joined  10-18-2006

That’s a PHP predefined class. All PHP classes are reserved, of course, because you can’t have two classes with the same name.

 Signature 

Once in a while I remember I use Twitter
I’m also in Linkster

Profile
 
 
Posted: 11 May 2008 08:30 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  613
Joined  04-20-2006

Ho ok, didn’t know that one! Thanks.

 Signature 

All CodeIgniter resources in 1 place?
http://www.codeigniterdirectory.com (Did you know we are converting this directory to Linkster? We need a Graphic designer, join us!)

My website: Création de sites Genève, Too Pixel

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: 61074 Total Logged-in Users: 16
Total Topics: 73897 Total Anonymous Users: 2
Total Replies: 398571 Total Guests: 337
Total Posts: 472468    
Members ( View Memberlist )