Welcome Guest, Not a member yet? Register   Sign In
isLogged in one Controller?
#1

[eluser]FREEZA[/eluser]
Hello.

Ich want to create a Controller called Product. There you can find two methods:

Code:
createProduct(); // This method is only available for users witch are logged in
getAllProducts();// This method is available for all
I read that i could define a isLogged() method in the __Constructor of the Controller Product but then you must be logged in for all methods!

The method getAllProducts() should be available for all!

Please Help me: )


Messages In This Thread
isLogged in one Controller? - by El Forum - 07-16-2011, 06:13 PM
isLogged in one Controller? - by El Forum - 07-16-2011, 09:38 PM
isLogged in one Controller? - by El Forum - 07-17-2011, 02:39 PM
isLogged in one Controller? - by El Forum - 07-18-2011, 02:59 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 07:52 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:01 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:03 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB