nickk Posted June 20, 2006 Share Posted June 20, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/12473-problem-coding-large-project/ Share on other sites More sharing options...
craygo Posted June 20, 2006 Share Posted June 20, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/12473-problem-coding-large-project/#findComment-47735 Share on other sites More sharing options...
nickk Posted June 20, 2006 Author Share Posted June 20, 2006 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 Link to comment https://forums.phpfreaks.com/topic/12473-problem-coding-large-project/#findComment-47743 Share on other sites More sharing options...
mb81 Posted June 20, 2006 Share Posted June 20, 2006 [!--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. Quote Link to comment https://forums.phpfreaks.com/topic/12473-problem-coding-large-project/#findComment-47753 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.