/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* 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. */
URL: http://codeigniter.com/forums/viewthread/82397/#414367
Comments
