As part of CO-112, COmanage Registry v0.4 migrated from CakePHP 1.3 to 2.05. The full description of everything that changed in CakePHP 2 is available at http://book.cakephp.org/2.0/en/appendices/2-0-migration-guide.html. Reading only this COmanage wiki page is not a substitute for reviewing the migration guide in the CakePHP book.
* Denotes a change being made concurrent with the CakePHP 2 migration that is not required by CakePHP 2.
?>
closing tag in .php files*setFlash()
or a REST HTTP return code)public $requires_co
)UsersController:login
)validate()
for REST API*public version
set*$html
is no longer available, use $this->Html
insteadselect
, the format for calling has changed (see any examples in various {{fields.inc}}s)select()
needs manual display of error: $this->Form->isFieldError
fieldsErrorToString
is no longer used$this->request->is('get')
to determine render form vs process data$components
from controllers (now in AppController)include App.standard_controller
to use Uses
instead$this->data
becomes $this->request->data
; don't write to either$this->params
becomes $this->request->params
checkWriteDependencies
and checkWriteFollowups
*