Hello friends
My project has two class, both use the same function. How better way to create other class to implement this function and reuse?
For example I have the class ClientController.php and ProductController.php, in this class I have this function:
protected function getAdministradores() 
        {
            $a = array();
            $adms = Usuarios::model()->administrativo()->findAll();
            foreach($adms as $k => $adm) { $a[] = $adm->usuario; }
            return $a;
        }
So I want create a class with this function and use on my functions ClientController.php and ProductController.php