Jump to content

Recommended Posts

I have a website I built for someone a while ago but i used bad coding techniques.

I used a class called display and a class called action

each page is a 'display' method, and each action (form submit) is an 'action' class method.

 

it's bad because the page is pretty long therefore it takes time to find the method i was looking for.

also, the HTML and PHP are combined so i echo all my HTML within the method.

 

My question is, should i just leave it as it is or i rather just rewrite the whole thing?

Link to comment
https://forums.phpfreaks.com/topic/183575-question-about-rewriting-a-website/
Share on other sites

My question is, should i just leave it as it is or i rather just rewrite the whole thing?

Only if you will be constantly adding additional features. If it works as it is and requires no additional functionality then just leave it and learn from your mistakes.

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.