Welcome Guest, Not a member yet? Register   Sign In
How to protect admin pages?
#4

(03-14-2015, 06:39 PM)lexxtoronto Wrote: But only those controllers that will display admin pages should check if the user is logged in, and no need for those controllers that simply display blog entries. I mean I should have separate controllers, right?

You're welcome! You can make your checks as complex as you want and you don't necessarily need separate controllers if they do basically the same thing. You can develop a system of permissions, where different kinds of users can do different things.

But if you're going to go for levels of permissions, you might as well look into existing libraries that handle authentication, like "flexi auth." Otherwise, do as you say, and only check where necessary. 
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Reply


Messages In This Thread
How to protect admin pages? - by lexxtoronto - 03-14-2015, 04:40 PM
RE: How to protect admin pages? - by RobertSF - 03-14-2015, 06:10 PM
RE: How to protect admin pages? - by lexxtoronto - 03-14-2015, 06:39 PM
RE: How to protect admin pages? - by RobertSF - 03-14-2015, 06:57 PM
RE: How to protect admin pages? - by lexxtoronto - 03-14-2015, 07:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB