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.

是否有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!



12.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!...