Changeset 1472 for trunk

Show
Ignore:
Timestamp:
10/27/10 05:41:03 (1 year ago)
Author:
masylum
Message:

Added optional non auto_instantiate models matching controllers name

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/AkActionController.php

    r1460 r1472  
    434434                $custom_find=true; 
    435435            } 
    436             $this->instantiateModelClass($model, (empty($this->finder_options[$model])?array():$this->finder_options[$model]),$custom_find); 
     436            if (!isset($this->_auto_instantiate_controller) || $this->_auto_instantiate_controller) { 
     437                $this->instantiateModelClass($model, (empty($this->finder_options[$model])?array():$this->finder_options[$model]),$custom_find); 
     438            } 
    437439        } 
    438440    } 
  • trunk/lib/AkActionView/AkPhpCodeSanitizer.php

    r508 r1472  
    6767 
    6868        if(!empty($this->_errors)){ 
     69            var_dump($this->_errors); 
    6970            if($raise_if_insecure){ 
    7071                $this->raiseError();