php - extends CotrollerBase along with other controller in phalcon, I want to use the functions of postSmsController in SmsSentController -
class controllerbase { } class postsmscontroller extends controllerbase { } class smssentcontroller extends controllerbase { }
how extends cotrollerbase along other controller in phalcon, want use functions of postsmscontroller in smssentcontroller, want use function of controllerbase in both controller classes. should do
you can extend 1 another
// base controller class controllerbase { public function one() { } } // extending. offers one() , two() class postsmscontroller extends controllerbase { public function two() { } } // extending. offers one() , two() , three() class smssentcontroller extends postsmscontroller { public function three() { } } // offers one() class othercontroller extends controllerbase { }
Comments
Post a Comment