/ Published in: PHP
- Create a new library file called MY_Controller:
- class Administrator extends Controller
- function Administrator()
- // Protect the admin area, etc
- Then for your admin controllers you extend the Administrator class instead of the Controller. That way you have common administrative logic in one place.
You need to login to post a comment.