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

Feedback component

I've built a Feedback component for Phalcon that I use for generating messages of failure or success that I can then easily report to the user. I found the built-in Flash and Message components too cumbersome and opinionated - but I've successfully used this component in about 4 large projects now and it works beautifully.

https://quasipickle.github.io/feedback

I suggest you follow PSR-2 (https://www.php-fig.org/psr/psr-2/) and make your package available via composer :)



11.6k

I try it, that's nice, two lines of code later, it smoothly integrate also with my ajax handler ... note: the way you use array_filter needs PHP 5.6 at least, older php version of this function only take two arguments, you should advertise users...

I try it, that's nice, two lines of code later, it smoothly integrate also with my ajax handler ... note: the way you use array_filter needs PHP 5.6 at least, older php version of this function only take two arguments, you should advertise users...

Thanks for the tip, I'll be sure to do that.

edited May '16

I suggest you follow PSR-2 (https://www.php-fig.org/psr/psr-2/) and make your package available via composer :)

Done.