Revision: 9774
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 21, 2008 02:46 by antoniomax
Initial Code
/* Create a new library file called MY_Controller: 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. */
Initial URL
http://codeigniter.com/forums/viewthread/82397/#414367
Initial Description
Initial Title
CI extend library
Initial Tags
Initial Language
PHP