Jump to content

Cannot redeclare class


Tom

Recommended Posts

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)

Link to comment
Share on other sites

  • 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...