We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to cancel an action in v 2.0?

I'm used return false; in 1.3 and view rendered.
now I'm using it in 2.0 but view would not render.
I also used return; and have same result.

I need it, please...



34.6k
Accepted
answer

A simple return will work for you, it's the same as return null which is different than return false

return; and return null; was ok. thanks.