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

Using Extension Classes in Phalcon

I installed geos extension for php, and intended to use it in my phalcon project, my project is using namespace. Methods calls like GEOSVersion() works fine, but when I want to create an instance for a geos class such as GEOSWKTReader, it always report error for can't find the class('myproject\util\GEOSWKTReader').

Is there any way to use the extensive class? or set the namespace to root?

You just need to load those classes in phalcon loader.

Could you tell me how to do that?

You just need to load those classes in phalcon loader.