Welcome Guest, Not a member yet? Register   Sign In
Auth control by uri request
#7

[eluser]FlashUK[/eluser]
[quote author="webthink" date="1205438005"]
Of course any custom routes might be worth thinking about.[/quote]

You don't need to worry about custom routes. The function uses "rsegment" which re-routes the path and confirms the true path.

[quote author="webthink" date="1205438005"]... You wouldn't need to sit it within an action at all actually because the constructor would get called regardless of the action ...[/quote]

You only need to include it in the action if you don't include the check() in the constructor. You would do this only in a controller when you want to protect one action (which is highly unlikely). Otherwise, you would have to add granted access for guests/normal users in the database which can be cumbersome.


Messages In This Thread
Auth control by uri request - by El Forum - 03-13-2008, 03:51 AM
Auth control by uri request - by El Forum - 03-13-2008, 05:53 AM
Auth control by uri request - by El Forum - 03-13-2008, 07:55 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:03 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:28 AM
Auth control by uri request - by El Forum - 03-13-2008, 08:53 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:20 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:24 AM
Auth control by uri request - by El Forum - 03-13-2008, 09:33 AM
Auth control by uri request - by El Forum - 04-16-2008, 03:27 AM
Auth control by uri request - by El Forum - 07-12-2008, 08:26 AM
Auth control by uri request - by El Forum - 07-12-2008, 04:07 PM
Auth control by uri request - by El Forum - 07-13-2008, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB