Os apêndices contêm informações sobre os novos recursos introduzidos na versão 2.0 e o guia de migração da versão 1.3 para a versão 2.0.
.. toctree::
O CakePHP 2.1 é um atualização totalmente compatível com API do 2.0. Esta página apresenta as mudanças e melhorias feitas no 2.1.
Como essas classes foram removidas do núcleo do CakePHP, agora elas são obrigatórias em sua aplicação. Se você não tiver essas classes, você pode usar o seguinte durante a atualização:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project name="name-of-project" default="build"> | |
| <target name="build" | |
| depends="prepare,lint,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,phpdoc,phpcb"/> | |
| <target name="build-parallel" | |
| depends="prepare,lint,tools-parallel,phpcb"/> | |
| <target name="tools-parallel" |
| <?xml version='1.0' encoding='UTF-8'?> | |
| <project> | |
| <actions/> | |
| <description><embed height="300" src="ws/build/pdepend/overview-pyramid.svg" type="image/svg+xml" width="500"></embed>
 | |
| <embed height="300" src="ws/build/pdepend/dependencies.svg" type="image/svg+xml" width="500"></embed></description> | |
| <keepDependencies>false</keepDependencies> | |
| <properties> | |
| <hudson.plugins.googlecode.GoogleCodeProjectProperty/> | |
| <com.coravy.hudson.plugins.github.GithubProjectProperty> | |
| <projectUrl>http://github.com/croogo/croogo/</projectUrl> |
| class Comment < ActiveRecord::Base | |
| belongs_to :post | |
| attr_accessible :body, :commenter | |
| end |
| <?php | |
| if (!isset($modules)) { | |
| $modulus = 11; | |
| } | |
| if (!isset($model)) { | |
| $models = ClassRegistry::keys(); | |
| $model = Inflector::camelize(current($models)); | |
| } | |
| ?> | |
| <div class="pagination"> |
| $.fn.addItems = function(data) { | |
| return this.each(function() { | |
| var list = $(this) | |
| list.empty() | |
| if (data.length != []) { | |
| $.each(data, function(index, text) { | |
| list.append("<option value="+index+">"+text+"</option>") | |
| }) | |
| } else { | |
| list.append("<option>Nenhuma opção encontrada</option>") |
| public function beforeDelete($cascade = true) { | |
| if (in_array($this->id, array(self::GRUPO_ADMIN, self::GRUPO_PUBLICO))) { | |
| return false; | |
| } | |
| return true; | |
| } |
| <?php | |
| class AppModel extends Model { | |
| public function getQuery($type, $options = array()) { | |
| $dbo = $this->getDataSource(); | |
| $defaults = array( | |
| 'fields' => array('`' . $this->alias . '`.`*`'), | |
| 'table' => '"' . $dbo->config['schema'] . '".' . $dbo->fullTableName($this), | |
| 'alias' => $this->alias, | |
| 'limit' => null, |
| \usepackage{array} | |
| \usepackage{tabularx} | |
| \usepackage[num,abnt-full-initials=yes]{abntcite} | |
| \usepackage{times,fancyhdr} | |
| \usepackage{graphicx,url} | |
| \usepackage{epsfig} | |
| \usepackage{amssymb} | |
| \usepackage{amsmath} | |
| \usepackage{amsfonts} | |
| \usepackage{amsthm,amscd} |