Jump to content


Photo

Problem coding large project


  • Please log in to reply
3 replies to this topic

#1 nickk

nickk
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 June 2006 - 04:45 PM

Hi,

I am currently coding a rather large project which includes an admin panel. Im not a bad php coder but when it comes to larger projects i often have problems. This one includes a producers table, customers, products, users, etc. I made a user system for logging in, editing, etc. The admin panel is a problem. I will need to make a part where the admin can edit producers, edit the customers that are associated with the producer, etc. I could make it but my code wopuld be very messy, etc. Any idea of how to handle/organize large projects like this?

#2 craygo

craygo
  • Staff Alumni
  • Advanced Member
  • 1,973 posts
  • LocationRhode Island

Posted 20 June 2006 - 05:10 PM

In the past I have always seperated admin pages and regular pages by putting pages in an admin folder and functions in an admin.inc page or any other page you may so name it. This will help seperate the pages and the code. You could also hide the location of such files by using includes and html variables to call the pages rather then going to them directly, for security purposes.

Ray

#3 nickk

nickk
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 June 2006 - 05:36 PM

Thanks for the reply. Yeh I have an admin folder and include files, but it still gets messy, for example i will need to add, edit, delete, etc., etc. and i will have a huge amount of if's, etc.

Also, a question regarding the customers and producers. I have seen websites with 2 boxes, and if you select and element and click a button it moves it to the other one. I think i could use this to add and remove customers from producers. How would i do this?

#4 mb81

mb81
  • Members
  • PipPipPip
  • Advanced Member
  • 120 posts

Posted 20 June 2006 - 06:11 PM

[!--quoteo(post=386097:date=Jun 20 2006, 01:36 PM:name=nickk)--][div class=\'quotetop\']QUOTE(nickk @ Jun 20 2006, 01:36 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Thanks for the reply. Yeh I have an admin folder and include files, but it still gets messy, for example i will need to add, edit, delete, etc., etc. and i will have a huge amount of if's, etc.

Also, a question regarding the customers and producers. I have seen websites with 2 boxes, and if you select and element and click a button it moves it to the other one. I think i could use this to add and remove customers from producers. How would i do this?
[/quote]

That sounds like Javascript.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users