Jump to content

Recommended Posts

Posted

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

Guest lorathon
Posted

If you don't have another called Aircraft, maybe it is being declared twice inside of the module?

Posted

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)

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...