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

Memcached class not found

Hi,

I'm trying to use Memcached in my controller , however when I run new Memcached, the script shows error: App\\Controlers\\Memcached not found

But Memcached is actually installed, and I can use it in a standalone script without phalcon. Why phalcon tries to find this class within the namespace of my controller and how can I use the memcached directly in phalcon?

Thanks.



841
Accepted
answer

oops, forgot to add \ before Memcached class. Resolved!