Changeset 305
- Timestamp:
- 08/02/07 18:40:52 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/script/generators/controller/controller_generator.php
r262 r305 35 35 $this->collisions = array(); 36 36 $this->_preloadPaths(); 37 $this->actions = empty($this->actions) ? array() : (array)$this->actions; 37 38 38 39 $files = array( … … 44 45 ); 45 46 46 foreach ( (array)@$this->actions as $action){47 foreach ($this->actions as $action){ 47 48 $files[] = AK_VIEWS_DIR.DS.AkInflector::underscore($this->class_name).DS.$action.'.tpl'; 48 49 } … … 68 69 @Ak::make_dir(AK_VIEWS_DIR.DS.AkInflector::underscore($this->class_name)); 69 70 70 foreach ( (array)@$this->actions as $action){71 foreach ($this->actions as $action){ 71 72 //$this->action = $action; 72 73 $this->assignVarToTemplate('action',$action);
