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

是否有2.0版本的多模块示例?Phalcon 2.0 multi-module demo?

update to 2.0 Error: Declaration of Biko\Frontend\Module::registerAutoloaders() must be compatible with Phalcon\Mvc\ModuleDefinitionInterface::registerAutoloaders(Phalcon\DiInterface $dependencyInjector = NULL) How can i do? Is anyone has Phalcon 2.0 multi-module demo? Thanks!



25.4k
Accepted
answer
edited Apr '15

Hi, i think in your module file, change:

public function registerAutoloaders(){
....
}

for:

public function registerAutoloaders(\Phalcon\DiInterface $di = null){
...
}

and try!...

It's good!

Hi, i think in your module file, change:

public function registerAutoloaders(){ .... } for:

public function registerAutoloaders(\Phalcon\DiInterface $di = null){ ... }

and try!...