Table of Contents : The Manual
- 1 Beginning With CakePHP
- 2 Basic Principles of CakePHP
- 3 Developing with CakePHP
- 3.1 Requirements
- 3.2 Installation Preparation
- 3.3 Installation
- 3.4 Configuration
- 3.5 Controllers
- 3.5.1 Introduction
- 3.5.2 Controller Attributes
- 3.5.3 Controller Methods
- 3.6 Components
- 3.7 Models
- 3.7.1 Understanding Models
- 3.7.2 Creating Database Tables
- 3.7.3 Model Attributes
- 3.7.4 Model Methods
- 3.7.5 Associations
- 3.7.6 DataSources
- 3.8 Behaviors
- 3.9 Views
- 3.10 Helpers
- 3.11 Scaffolding
- 3.12 The CakePHP Console
- 3.13 Code Generation with Bake
- 3.14 Plugins
- 3.15 Global Constants and Functions
- 4 Common Tasks With CakePHP
- 4.1 Data Validation
- 4.1.1 Simple Rules
- 4.1.2 One Rule Per Field
- 4.1.3 Multiple Rules per Field
- 4.1.4 Built-in Validation Rules
- 4.1.4.1 alphaNumeric
- 4.1.4.2 between
- 4.1.4.3 blank
- 4.1.4.4 cc
- 4.1.4.5 comparison
- 4.1.4.6 date
- 4.1.4.7 decimal
- 4.1.4.8 email
- 4.1.4.9 equalTo
- 4.1.4.10 extension
- 4.1.4.11 file
- 4.1.4.12 ip
- 4.1.4.13 isUnique
- 4.1.4.14 minLength
- 4.1.4.15 maxLength
- 4.1.4.16 money
- 4.1.4.17 multiple
- 4.1.4.18 numeric
- 4.1.4.19 phone
- 4.1.4.20 postal
- 4.1.4.21 range
- 4.1.4.22 ssn
- 4.1.4.23 url
- 4.1.5 Custom Validation Rules
- 4.1.6 Validating Data from the Controller
- 4.2 Data Sanitization
- 4.3 Error Handling
- 4.4 Debugging
- 4.5 Caching
- 4.6 Logging
- 4.7 Testing
- 4.7.1 Preparing for testing
- 4.7.2 Testing overview - Unit testing vs. Web testing
- 4.7.3 Preparing test data
- 4.7.4 Creating tests
- 4.7.5 Testing models
- 4.7.6 Testing controllers
- 4.7.7 Testing components
- 4.7.8 Web testing - Testing views
- 4.7.9 Testing plugins
- 4.7.10 Miscellaneous
- 4.8 Localization & Internationalization
- 4.9 Pagination
- 4.10 REST
- 4.1 Data Validation
- 5 Built-in Components
- 5.1 Access Control Lists
- 5.2 Authentication
- 5.3 Cookies
- 5.4 Email
- 5.5 Request Handling
- 5.6 Security Component
- 5.6.1 Configuration
- 5.6.2 Methods
- 5.6.2.1 requirePost()
- 5.6.2.2 requireSecure()
- 5.6.2.3 requireAuth()
- 5.6.2.4 requireLogin()
- 5.6.2.5 loginCredentials(string $type)
- 5.6.2.6 loginRequest(array $options)
- 5.6.2.7 parseDigestAuthData(string $digest)
- 5.6.2.8 generateDigestResponseHash(array $data)
- 5.6.2.9 blackHole(object $controller, string $error)
- 5.6.3 Usage
- 5.6.4 Basic HTTP Authentication
- 5.7 Sessions
- 6 Built-in Behaviors
- 7 Built-in Helpers
- 7.1 AJAX
- 7.2 Cache
- 7.3 Form
- 7.3.1 Creating Forms
- 7.3.2 Closing the Form
- 7.3.3 Automagic Form Elements
- 7.3.3.1 $options[‘type’]
- 7.3.3.2 $options[‘before’], $options[‘between’] and $options[‘after’]
- 7.3.3.3 $options[‘options’]
- 7.3.3.4 $options[‘multiple’]
- 7.3.3.5 $options[‘maxLength’]
- 7.3.3.6 $options[‘div’]
- 7.3.3.7 $options[‘label’]
- 7.3.3.8 $options[‘id’]
- 7.3.3.9 $options[‘error’]
- 7.3.3.10 $options[‘selected’]
- 7.3.3.11 $options[‘rows’], $options[‘cols’]
- 7.3.3.12 $options[‘empty’]
- 7.3.3.13 $options[‘timeFormat’]
- 7.3.3.14 $options[‘dateFormat’]
- 7.3.3.15 $options['minYear'], $options['maxYear']
- 7.3.4 File Fields
- 7.3.5 Form Element-Specific Methods
- 7.4 HTML
- 7.5 Javascript
- 7.6 Number
- 7.7 Paginator
- 7.8 RSS
- 7.9 Session
- 7.10 Text
- 7.11 Time
- 7.12 XML
- 8 Built-in Utility Libraries
- 9 Example Applications
- 9.1 Blog
- 9.1.1 Getting Cake
- 9.1.2 Creating the Blog Database
- 9.1.3 Cake Database Configuration
- 9.1.4 Optional Configuration
- 9.1.5 A Note on mod_rewrite
- 9.1.6 Create a Post Model
- 9.1.7 Create a Posts Controller
- 9.1.8 Creating Post Views
- 9.1.9 Adding Posts
- 9.1.10 Data Validation
- 9.1.11 Deleting Posts
- 9.1.12 Editing Posts
- 9.1.13 Routes
- 9.1.14 Conclusion
- 9.2 Simple User Authentication
- 9.1 Blog
- 10 Appendices
3.5.3.4.3 disableCache
Used to tell the user’s browser not to cache the results of the current request. This is different than view caching, covered in a later chapter.
See comment for this section
