(02-17-2016, 04:55 PM)siburny Wrote: If you don't need just remove the class file. If you need functionality from CI_Model class, then MY_Model has it too because it inherits from CI_Model.
Can you specify a use case?
I have few models which I normally using and model to extends with methods for extends:
PHP Code:
class ToExtends_model extends CI_Model {
//... methods like
function GetWhereSingle( $Table, $WhereName, $WhereValue ) {
$this->db->where( $WhereName, $WhereValue );
return $this->db->get( $Table, 1 );
} // end method
}
Now I want to extends my normal models with this, ex.
PHP Code:
class Users_model extends ToExtends_model {
but I still using CI_Model (AR)