Answer the question
In order to leave comments, you need to log in
How to get quick access to phalcon services?
We register a new service: $di->set('Service', new Service());
In the controller, to use it, you need to create an instance:
$service = new Service();
$service->someMethod();
$this->service->someMethod();
$this->request->isPost();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question