Tom Posted August 23, 2011 Report Share Posted August 23, 2011 I'm receiving a 'Fatal error: Cannot redeclare class Aircraft ' error when creating a module called 'Aircraft', however I do not seem to have a module or data class called Aircraft. Where is this? Tom Quote Link to comment Share on other sites More sharing options...
Guest lorathon Posted August 23, 2011 Report Share Posted August 23, 2011 If you don't have another called Aircraft, maybe it is being declared twice inside of the module? Quote Link to comment Share on other sites More sharing options...
Tom Posted August 23, 2011 Author Report Share Posted August 23, 2011 Nope it's only in there once. It says the error is with line 58 which is the closing } for the Aircraft class. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted August 23, 2011 Moderators Report Share Posted August 23, 2011 This may be a silly answer but have you tried renaming to Aircraft1 ? Maybe that will work. Quote Link to comment Share on other sites More sharing options...
Tom Posted August 23, 2011 Author Report Share Posted August 23, 2011 This may be a silly answer but have you tried renaming to Aircraft1 ? Maybe that will work. I've called it Aircrafts for now and the page loads, however is it not normal practice for the file name and class name to be the same? I have to have it called Aircraft for the sake of the URL. (I also don't want random code running if it doesn't have to be) Quote Link to comment Share on other sites More sharing options...
Tom Posted August 31, 2011 Author Report Share Posted August 31, 2011 Any ideas? Nabeel? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.