Answer the question
In order to leave comments, you need to log in
Is it possible to call a static model method in the volt template?
Hello. I am using Phalcon PHP framework. It has a Volt template engine.
So, how to call the static method of the model in the template (Messages::counter())
I did not find a solution in the documentation. So far I'm doing it simply:
But this construction seems like a crutch to me, is it? echo Messages::counter()
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