CakePHP Equivalent - Create Global Modal Function

To create a global modal function that can be used by all models in CakePHP you create a function in the AppModel.php file. This function can be accessed within any model.

Model1->myFunction(); Model2->myFunction(); Model3->myFunction();

How do I go about doing this with Phalcon?

Thanks, Gene

Create class ModelBase extend \Phalcon\Mvc\Model and put your global model method inside. Next update your exisiting models to extending ModelBase instead Phalcon\Mvc\Model.