|
|
@@ -154,14 +154,19 @@ class Zend_Tool_Project_Provider_Module
|
|
|
$response->appendContent($resource->getContext()->getPath());
|
|
|
$resource->create();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ $response->appendContent('Added a key for path module directory to the application.ini file');
|
|
|
+ $appConfigFile = $this->_loadedProfile->search('ApplicationConfigFile');
|
|
|
+ $appConfigFile->removeStringItem('resources.frontController.moduleDirectory', 'production');
|
|
|
+ $appConfigFile->addStringItem('resources.frontController.moduleDirectory', 'APPLICATION_PATH "/modules"', 'production', false);
|
|
|
+
|
|
|
if (strtolower($name) == 'default') {
|
|
|
$response->appendContent('Added a key for the default module to the application.ini file');
|
|
|
- $appConfigFile = $this->_loadedProfile->search('ApplicationConfigFile');
|
|
|
$appConfigFile->addStringItem('resources.frontController.params.prefixDefaultModule', '1', 'production');
|
|
|
- $appConfigFile->create();
|
|
|
}
|
|
|
|
|
|
+ $appConfigFile->create();
|
|
|
+
|
|
|
// store changes to the profile
|
|
|
$this->_storeProfile();
|
|
|
}
|