Changeset 21262
- Timestamp:
- 10/13/08 22:43:08 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
events/phpframework/zend_framework/trunk/app/Init.php
r15805 r21262 26 26 * @version $id$ 27 27 * @copyright 2008 Heavens hell 28 * @author Heavens hell <heavenshell @heavenshell.jp>28 * @author Heavens hell <heavenshell.jp@gmail.com> 29 29 * @license New BSD License 30 30 */ … … 118 118 ->_loadLayoutSetting() 119 119 ->_loadPaths() 120 ->_loadDbAdapter(); 120 ->_loadDbAdapter() 121 ->_loadMailConfig(); 121 122 122 123 return $this; … … 299 300 return $config->toArray(); 300 301 } 302 301 303 return $config; 302 304 } … … 312 314 { 313 315 $appPath = $this->_getParam('appPath'); 314 $file = $appPath . 'configs' . DIRECTORY_SEPARATOR . 'core.ini';316 $file = $appPath . 'configs' . DIRECTORY_SEPARATOR . 'core.ini'; 315 317 if (!file_exists($file)) { 316 318 throw new Zend_Config_Exception('Could not load configs.ini.'); … … 346 348 } 347 349 $logDir = rtrim($logDir, '/\\') . DIRECTORY_SEPARATOR; 350 348 351 $this->_setParam('rootDir', $rootDir); 349 352 $this->_setParam('cacheDir', $cacheDir); … … 423 426 424 427 /** 428 * Load mail config 429 * 430 * @access private 431 * @return Init 432 * @throws Zend_Config_Exception 433 */ 434 private function _loadMailConfig() 435 { 436 $appPath = $this->_getParam('appPath'); 437 $file = $appPath . 'configs' . DIRECTORY_SEPARATOR . 'mail.ini'; 438 $mailConfig = null; 439 if (file_exists($file)) { 440 $mailConfig = $this->_loadConfig($file, $this->_getParam('envMode')); 441 } 442 $this->_setParam('mailConfig', $mailConfig); 443 444 return $this; 445 } 446 447 /** 425 448 * Create plugin objects 426 449 * … … 487 510 } 488 511 489 // Default settings. 512 // Default settings. 490 513 $router->removeDefaultRoutes(); 491 514 if (is_array($this->_modules)) { … … 544 567 $router = $front->getRouter(); 545 568 $this->_initRoute($router, $defaultModule); 546 547 569 $front->setDefaultModule($defaultModule) 548 570 ->addModuleDirectory($this->_getParam('moduleDir'))
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)