class adminpanel extend myadmin { public function index() { $this->_layouts(); // or parent::_layouts(); } }