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! Link to comment https://forums.phpfreaks.com/topic/82007-solved-design-issue/ 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. Link to comment https://forums.phpfreaks.com/topic/82007-solved-design-issue/#findComment-416687 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. Link to comment https://forums.phpfreaks.com/topic/82007-solved-design-issue/#findComment-416691 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... Link to comment https://forums.phpfreaks.com/topic/82007-solved-design-issue/#findComment-416701 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. Link to comment https://forums.phpfreaks.com/topic/82007-solved-design-issue/#findComment-416705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.