freebsdntu Posted December 17, 2007 Share Posted December 17, 2007 Hi guys, I am building a system where there are 2 types of users,odinary user and super user,when they login,they will both have a control panel,but with different user actions based on their user type. So for the logged in page, should I write seperate pages for each type or should I just write one page, with conditional php? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted December 17, 2007 Share Posted December 17, 2007 depends on the differences in control. if there is a massive difference, may be easier building different pages. either way si possilbe gdlk. Quote Link to comment Share on other sites More sharing options...
hostfreak Posted December 17, 2007 Share Posted December 17, 2007 Personally I would go the conditional route with different pages. To me it keeps it cleaner. Also, you should ask yourself whether or not the user actions will grow. If so, why not prepare for it now and give each different pages. Quote Link to comment Share on other sites More sharing options...
snk Posted December 17, 2007 Share Posted December 17, 2007 i think hostfreak is right, you will have expandable abilities, from the other hand with different pages maybe is easier and faster the design. If you are not experienced programmer is better, for my opinion to have different pages, to avoid confusion. You can do something else as well that it is a bit of both... You can have a page panel.php that everybody goes and depending the user group, you include different files... Quote Link to comment Share on other sites More sharing options...
freebsdntu Posted December 17, 2007 Author Share Posted December 17, 2007 Ok,thank you for your useful inputs,I got it. Quote Link to comment 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.