class Usersmodel extends Model { function Usersmodel() { // Call the Model constructor parent::Model(); } function Abc() { //some code is here } function 123() {//I want to use here } function TBG() {//I want to use and here } }
<?php class BaseModel extends Model { function __construct(){ parent::__construct(); } //Your code here } ?>
class Post extends BaseModel { //Your code here }
class Post extends Model { ststic function doit(){ return '123'; } function get_123(){ return self::doit(); } }