The official manual has the following code to register multiple modules
<code>// 注册模块 $application->registerModules( array( 'frontend' => array( 'className' => 'Multiple\Frontend\Module', 'path' => '../apps/frontend/Module.php', ), 'backend' => array( 'className' => 'Multiple\Backend\Module', 'path' => '../apps/backend/Module.php', ) ) );</code>
Where 'className' => 'MultipleFrontendModule',
what does it mean? According to the official file configuration, the following is always displayed:
'MultipleFrontendModule' wasn't found in the dependency injection container
The official manual has the following code to register multiple modules
<code>// 注册模块 $application->registerModules( array( 'frontend' => array( 'className' => 'Multiple\Frontend\Module', 'path' => '../apps/frontend/Module.php', ), 'backend' => array( 'className' => 'Multiple\Backend\Module', 'path' => '../apps/backend/Module.php', ) ) );</code>
Where 'className' => 'MultipleFrontendModule',
what does it mean? According to the official file configuration, the following is always displayed:
'MultipleFrontendModule' wasn't found in the dependency injection container
Does the file apps/frontend/Module.php exist and the path is correct
In this file, is there a class named Module?