just a theoretic question what structure should i use? 1. separate scripts for every action (project-main.php, project-add, project-del, project-edit...) 2. all in one file (project.php?action=add/edit/del...) thanx
Whichever works better for you.
It really doesn't matter, you could do it either way. The important thing is that your code stays manageable and easy to understand.
I started with the first one and now using the second. I like the way it can tremendeously reduce the number of files I have... heheh... manageable? I think the first one should be better in this "manageable" stuff..
If you're using oo programming you're admin area programs will be so small (under 100 lines of code) when they are all in ones that it doesn't make much sense to split it up.