hello, i am begginer in phalcon and i want know how step the model as argument in a method the controller
use \Phalcon\Mvc\Controller as Controller;
class UserController extends Controller{
public function loginAction(User $users){
$users->startAction();
}
}
the other file
use \Phalcon\Phalcon\Mvc\Model as Model;
class User extends Model{
public function startAction(){
echo "LOL";
}
}
i donĀ“t know how to add the route of that model? use include or require or namespace?