Welcome Guest, Not a member yet? Register   Sign In
How to structure the admin zone
#7

[eluser]Pascal Kriete[/eluser]
Create a new library file called MY_Controller:
Code:
class Administrator extends Controller
{    
    function Administrator()
    {
        parent::Controller();

        // Protect the admin area, etc
        $this->access->restrict('Administrators');
    }

}

Then for your admin controllers you extend the Administrator class instead of the Controller. That way you have common administrative logic in one place.


Messages In This Thread
How to structure the admin zone - by El Forum - 06-15-2008, 08:38 AM
How to structure the admin zone - by El Forum - 06-15-2008, 08:48 AM
How to structure the admin zone - by El Forum - 06-15-2008, 08:52 AM
How to structure the admin zone - by El Forum - 06-15-2008, 09:02 AM
How to structure the admin zone - by El Forum - 06-15-2008, 09:17 AM
How to structure the admin zone - by El Forum - 06-15-2008, 10:40 AM
How to structure the admin zone - by El Forum - 06-15-2008, 11:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB