hi everyone! i need advice.. i have decided to collect all my hooks in one class, like this:
PHP Code:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
// ------------------------------------------------------------------------
/**
* Hooks Class
*/
class Hooks extends CI_Hooks {
/**
* Some method
*/
protected function some_method()
{
//
}
// ------------------------------------------------------------------------
/**
* Another method
*/
protected function another_method()
{
//
}
// ------------------------------------------------------------------------
// etc...
}
but in order to make method protected, i have extended the CI_Hooks, so is it a good? or i shouldn't do like this?