CakePHP
Downloads
Latest Release
CakePHP 1.2
Download
|
Tickets
CakePHP 1.3
Download
|
Tickets
CakePHP 2.0
Tickets
Documentation
API
1.1
|
1.2
|
1.3
|
2.0
Book
1.1
|
1.2
|
1.3
|
2.0
Tickets
Translations
Community
Bakery
Contributors
Google Groups
Logo
Planet
Q & A
TV (Screencasts)
Services
Certification
Consultation
Support
Training
Navigation
index
next
|
CakePHP Cookbook v2.x documentation
»
1.3 Book
|
1.2 Book
|
1.1 Book
Enter search terms or a class or function name. Hit enter for full text search
Table Of Contents
Welcome
Installation
Getting Started
CakePHP Overview
Controllers
Views
Models
Core Libraries
Plugins
Console and Shells
Development
Deployment
Tutorials & Examples
Contributing
Appendices
Next topic
Welcome
This Page
Show Source
Contents
¶
Welcome
Getting started
Build a blog
Conventions
Controllers
Views
Models
Getting Help
Installation
Requirements
License
Downloading CakePHP
Permissions
Setup
Development
Using one CakePHP checkout for multiple applications
Production
Advanced Installation and server specific configuration
Advanced Installation
Fire It Up
Getting Started
Blog Tutorial
Getting Cake
Creating the Blog Database
Cake Database Configuration
Optional Configuration
A Note on mod_rewrite
Blog Tutorial - Adding a layer
Create a Post Model
Create a Posts Controller
Creating Post Views
Adding Posts
Data Validation
Editing Posts
Deleting Posts
Routes
Conclusion
Additional Reading
CakePHP Overview
What is CakePHP? Why Use it?
Understanding Model-View-Controller
The Model layer
The View layer
The Controller layer
CakePHP request cycle
Benefits
Where to Get Help
The Official CakePHP website
The Cookbook
The Bakery
The API
The Test Cases
The IRC channel
The Google Group
CakePHP Questions
Controllers
The App Controller
Request parameters
Controller actions
Request Life-cycle callbacks
Controller Methods
Interacting with Views
Flow Control
Callbacks
Other Useful Methods
Controller Attributes
$components, $helpers and $uses
Other Attributes
More on controllers
Request and Response objects
CakeRequest
CakeResponse
Scaffolding
The Pages Controller
Components
Views
View Templates
Extending Views
Using view blocks
Displaying blocks
Using blocks for script and CSS files
Layouts
Using layouts from plugins
Elements
Passing Variables into an Element
Caching Elements
Requesting Elements from a Plugin
2.0
2.1
View API
More about Views
Themes
Media Views
JSON and XML views
Helpers
Models
Understanding Models
More on models
Associations: Linking Models Together
Retrieving Your Data
Saving Your Data
Deleting Data
Data Validation
Callback Methods
Behaviors
DataSources
Model Attributes
Additional Methods and Properties
Virtual fields
Transactions
Core Libraries
General purpose
Global Constants and Functions
Events System
Collections
Components
Access Control Lists
Authentication
Cookie
EmailComponent
Request Handling
Pagination
Security
Sessions
Helpers
CacheHelper
FormHelper
HtmlHelper
JsHelper
NumberHelper
Paginator
RSS
SessionHelper
TextHelper
TimeHelper
Behaviors
ACL
Containable
Translate
Tree
Core Libraries
App Class
Caching
CakeEmail
CakeNumber
CakeTime
Data Sanitization
Folder & File
HttpSocket
Inflector
Internationalization & Localization
Logging
Router
Security
Set
String
Xml
Plugins
Installing a Plugin
Using a Plugin
Creating Your Own Plugins
Plugin Controllers
Plugin Models
Plugin Views
Overriding plugin views from inside your application
Plugin assets
Linking to assets in plugins
Components, Helpers and Behaviors
Expand Your Plugin
Plugin Tips
Console and Shells
The CakePHP console
Adding cake to your system path
Creating a shell
Using Models in your shells
Shell tasks
Loading tasks on the fly with TaskCollection
Invoking other shells from your shell
Console output levels
Styling output
Turning off colouring
Configuring options and generating help
Configuring an option parser with the fluent interface
Adding arguments
Validating arguments
Adding Options
Validating options
Using boolean options
Adding subcommands
Building a ConsoleOptionParser from an array
Getting help from shells
Getting help as XML
Shell API
More topics
Running Shells as cronjobs
Code Generation with Bake
Schema management and migrations
I18N shell
ACL Shell
Testsuite shell
Upgrade shell
Development
Configuration
Database Configuration
Additional Class Paths
Core Configuration
Configure Class
Loading configuration files
Creating your own Configuration readers
Inflection Configuration
Bootstrapping CakePHP
Routing
Routes Configuration
Default Routing
Connecting Routes
Passed arguments
Named parameters
Reverse routing
Redirect routing
Disabling the default routes
Custom Route classes
Router API
Sessions
Session Configuration
Built-in Session handlers & configuration
Setting ini directives
Creating a custom session handler
Reading & writing session data
Exceptions
Exception configuration
Exception classes
Creating your own application exceptions
Extending and implementing your own Exception handlers
Create your own Exception handler with
Exception.handler
Using AppController::appError();
Using a custom renderer with Exception.renderer to handle application exceptions
Built in Exceptions for CakePHP
Using HTTP exceptions in your controllers
Error Handling
Error configuration
Creating your own error handler
Debugging
Basic Debugging
Debugger Class
Using the Debugger Class
Using Logging to debug
Debug Kit
Testing
Installing PHPUnit
Test Database Setup
Checking the Test Setup
Test Case Conventions
Creating Your First Test Case
Running Tests
Test Case Lifecycle Callbacks
Fixtures
Testing Models
Testing Controllers
Testing Components
Testing Helpers
Creating Test Suites
Creating Tests for Plugins
Integration with Jenkins
REST
The Simple Setup
Accepting input in other formats
Modifing the default REST routes
Custom REST Routing
Vendor packages
Vendor assets
Deployment
Set document root
Update core.php
Multiple CakePHP applications using the same core
Tutorials & Examples
Blog Tutorial
Getting Cake
Creating the Blog Database
Cake Database Configuration
Optional Configuration
A Note on mod_rewrite
Blog Tutorial - Adding a layer
Create a Post Model
Create a Posts Controller
Creating Post Views
Adding Posts
Data Validation
Editing Posts
Deleting Posts
Routes
Conclusion
Simple Authentication and Authorization Application
Creating all users’ related code
Authentication (login and logout)
Authorization (who’s allowed to access what)
Simple Acl controlled Application
Preparing our Application
Preparing to Add Auth
Initialize the Db Acl tables
Acts As a Requester
Creating ACOs (Access Control Objects)
Simple Acl controlled Application - part 2
An Automated tool for creating ACOs
Setting up permissions
Logging in
Logout
All done
Contributing
Documentation
Translations
Documentation formatting guide
Tickets
Reporting bugs
Reporting security issues
Code
Initial setup
Working on a patch
Submitting a pull request
Coding Standards
Adding new features
Indentation
Control Structures
Function Calls
Method definition
Commenting code
Including files
PHP tags
Naming convention
Appendices
2.0 Migration Guide
2.0 Migration Guide
New Features in CakePHP 2.0
PHPUnit Migration Hints
2.1 Migration Guide
2.1 Migration Guide
New Features in CakePHP 2.1
Migration from 1.2 to 1.3
Migrating from CakePHP 1.2 to 1.3
New features in CakePHP 1.3
General Information
CakePHP Development Process
Glossary
Indices and tables
¶
Index
Module Index
Search Page
Glossary
Enter search terms or a class or function name. Hit enter for full text search
Table Of Contents
Welcome
Installation
Getting Started
CakePHP Overview
Controllers
Views
Models
Core Libraries
Plugins
Console and Shells
Development
Deployment
Tutorials & Examples
Contributing
Appendices
Next topic
Welcome
This Page
Show Source
Navigation
index
next
|
CakePHP Cookbook v2.x documentation
»
en
pt
es
ja
ru