Welcome Guest, Not a member yet? Register   Sign In
Extending My_Controller with an Auth layer.
#14

[eluser]gh0st[/eluser]
The MY_Controller is an extension of the core. You can put repetitive stuff in there, and extend MY_Controller to do what you require.

The Admin_Controller is a controller which can be used for the admin sections; or things that require authorization.

If you want a products controller and admins to create stuff and then let users access a list;

I would put the listing in MY_Controller and admin stuff in Admin_Controller. The auth layer bit could be in MY_Controller, or if you only want it for Admin, put it in Admin_Controller.

Unfortuently there is a lot of code that is wrapped inside of Tank Auth and figuring out what should and should not be in the Admin_Controller can be time consuming.

I am hoping @Devon Lambert puts up some code to explain the seperation (or not) of the Tank auth layer with a modular setup.

I've got it set up so that my Admin_Controller extends yet another Controller called "Auth_Controller" where I put the tank auth layer itself where it does a very basic check to make sure you are logged in.


Messages In This Thread
Extending My_Controller with an Auth layer. - by El Forum - 02-01-2010, 07:20 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-01-2010, 07:56 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-01-2010, 09:18 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-01-2010, 11:49 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-01-2010, 04:42 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-02-2010, 03:35 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-02-2010, 05:26 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-02-2010, 05:42 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-15-2010, 11:47 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-15-2010, 03:28 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 02:40 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 03:12 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 10:05 AM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 12:00 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 04:02 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 08:32 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 08:46 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 09:00 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-16-2010, 09:22 PM
Extending My_Controller with an Auth layer. - by El Forum - 02-17-2010, 06:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB