Phalcon installation issue on Xampp/Windows - Uncaught Error: Class 'Phalcon\Loader' not found #257
-
I have downloaded Phalcon and PSR dlls that match up with the PHP on my XAMPP environment, put the dlls in C:\xampp\php\ext folder, and edit the php.ini accordingly
Both Phalcon and PSR seems to be loaded properly on php info (picture below), but if I try to run a test code I get the following error Fatal error: Uncaught Error: Class 'Phalcon\Loader' not found in C:\xampp\htdocs\htdocs_PhalconSimpleRest\index.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\htdocs_PhalconSimpleRest\index.php on line 10 Below is a portion of code that I am trying to execute What could be the potential issue? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@wilsonsuryajaya In Phalcon v5, many classes have been moved to other namespaces. https://github.com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md Moved |
Beta Was this translation helpful? Give feedback.
-
Thank you, this solves my issue. I revert back to use Phalcon v4 dll v4.1.2 and everything works fine. |
Beta Was this translation helpful? Give feedback.
@wilsonsuryajaya In Phalcon v5, many classes have been moved to other namespaces.
https://github.com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md
Moved
Phalcon\Loader
toPhalcon\Autoload\Loader