Jump to content

Archived

This topic is now archived and is closed to further replies.

nickk

Problem coding large project

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
[!--quoteo(post=386097:date=Jun 20 2006, 01:36 PM:name=nickk)--][div class=\'quotetop\']QUOTE(nickk @ Jun 20 2006, 01:36 PM) [snapback]386097[/snapback][/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.

Share this post


Link to post
Share on other sites

×

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.