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

Issue with phalcon

Hi, I have this error: Fatal error: Class 'Phalcon\Ext\Widgets\Manager' not found in Module.php on line 65

Phalcon is correctly compiled and installed, I can see via phpinfo() version 2.0.10

What could be wrong?

I am using MAMP. Worked always fine, I was using: https://github.com/majksner/php-phalcon-mamp but I try also compile but issue persist.

Most of pages work fine, only where Widgets is used not work.

Thanks



85.5k

Ext widgets is not part ( as far as i know ) of phalcon, it seems like its your own classes.

make sure you call them with the correct namespaces, class loader is correct. Show us the loader and where you init the class

As Izo said, you haven't included the external widgets classes. In your composer.json write:

{
    "require": {
        "phalcon-ext/widgets": "dev-master"
    }
}

https://github.com/phalcon-ext/widgets



2.3k

Thank you, fixed!



85.5k

you can even accept your post as an answer to the thread so it can be marked as solved



2.3k
edited Mar '16

I am not sure which was issue, because I solved before read this reply, in another way.

I forgot to include this in composer:

"phalcon/incubator"

after including this, issue was fixed...