Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.



426
Accepted
answer

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