Changeset 359
- Timestamp:
- 09/14/07 17:03:43 (1 year ago)
- Files:
-
- trunk/app/controllers/framework_setup_controller.php (modified) (2 diffs)
- trunk/lib/AkActionController.php (modified) (3 diffs)
- trunk/public/index.php (modified) (1 diff)
- trunk/script/setup (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/framework_setup_controller.php
r357 r359 17 17 defined('AK_BASE_DIR') ? null : define('AK_BASE_DIR', str_replace(DS.'app'.DS.'controllers'.DS.'framework_setup_controller.php','',__FILE__)); 18 18 defined('AK_CONFIG_DIR') ? null : define('AK_CONFIG_DIR', AK_BASE_DIR.DS.'config'); 19 19 // defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', '/path/to/the/framework'); 20 20 21 define('AK_AUTOMATICALLY_UPDATE_LANGUAGE_FILES', true); 21 22 define('AK_AUTOMATIC_CONFIG_VARS_ENCRYPTION', false); … … 209 210 } 210 211 211 $ActionController = new AkActionController(); 212 $ActionController->handleRequest(); 212 require_once(AK_LIB_DIR.DS.'AkDispatcher.php'); 213 $Dispatcher =& new AkDispatcher(); 214 $Dispatcher->dispatch(); 213 215 214 216 ?> trunk/lib/AkActionController.php
r357 r359 144 144 $this->Request =& $Request; 145 145 $this->Response =& $Response; 146 $this->params = &$this->Request->getParams();146 $this->params = $this->Request->getParams(); 147 147 $this->_action_name = $this->Request->getAction(); 148 148 … … 158 158 159 159 if($this->_high_load_mode !== true){ 160 161 // Before filters 160 if(!empty($this->_auto_instantiate_models)){ 161 $this->instantiateIncludedModelClasses(); 162 } 162 163 if(!empty($this->helpers)){ 163 $this-> beforeFilter('instantiateHelpers');164 $this->instantiateHelpers(); 164 165 } 165 166 if(!empty($this->_enable_plugins)){ 166 $this->beforeFilter('loadPlugins'); 167 } 168 if(!empty($this->_auto_instantiate_models)){ 169 $this->beforeFilter('instantiateIncludedModelClasses'); 167 $this->loadPlugins(); 170 168 } 171 169 }else{ … … 173 171 } 174 172 175 $this-> beforeFilter('_ensureProperProtocol');173 $this->_ensureProperProtocol(); 176 174 177 175 // After filters trunk/public/index.php
r358 r359 14 14 * @license GNU Lesser General Public License <http://www.gnu.org/copyleft/lesser.html> 15 15 */ 16 17 // defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', '/path/to/the/framework');18 16 19 17 /** trunk/script/setup
r334 r359 136 136 foreach (array( 137 137 'config'.DS.'DEFAULT-config.php', 138 ' public'.DS.'index.php') as $file){138 'app'.DS.'controllers'.DS.'framework_setup_controller.php') as $file){ 139 139 if(file_exists($this->options['directory'].DS.$file)){ 140 140 $file_contents = str_replace("// defined('AK_FRAMEWORK_DIR') ? null : define('AK_FRAMEWORK_DIR', '/path/to/the/framework');",
