CakePHP application development step-by-step introduction to rapid web development using the open-source MVC CakePHP framework - Bari, Ahsanul (Packt Pub., 2008)
Title from title screen. - Includes index
Cover -- Table of Contents -- Preface -- What This Book Covers -- Who is This Book for -- Conventions -- Reader Feedback -- Customer Support -- Downloading the Example Code for the Book -- Errata -- Questions -- Chapter 1: Introduction to CakePHP -- What is CakePHP? -- A PHP Framework -- Common Design Patterns -- Rapid Web Development -- Works with PHP4 and PHP5 -- CakePHP is Free and Open Source -- Improved Code Structure -- Understanding the MVC Pattern -- Models -- Controllers -- Views -- How It Works -- Faster Development -- Less Configuration, More Convention -- Auto Code Generation -- Quick Access to Related Data -- Built-in Commonly Used Functionalities -- Versions of CakePHP: 1.1 and 1.2 -- Summary -- Chapter 2: A Quick Installation -- Downloading CakePHP -- Platform Requirements -- Configuring Apache -- AllowOverwrite is Set to All -- Mod_rewrite Module is Loaded -- Setting Up Cake in Web Root -- Running Cake for the First Time -- Summary -- Chapter 3: A Quick App --
- Making Sure the Oven is Ready -- CakeTooDoo: a Simple To-do List Application -- Configuring Cake to Work with a Database -- Writing our First Model -- Writing our First Controller -- Viewing All Tasks in CakeTooDoo -- Adding a New Task -- Editing a Task -- Adding Data Validation -- Deleting a Task from CakeTooDoo -- Viewing Completed Tasks and Pending Tasks -- Formatting Date and Time -- Creating the CakeTooDoo Homepage -- Summary -- Chapter 4: Controllers -- Interacting with Model -- Attaching Models and Controllers -- Action, Parameters, and Views -- Interacting with View -- Actions and Parameters -- Getting Post Data from the View -- Redirecting -- AppController: The Parent Controller -- Working with Components -- Summary -- Chapter 5: Models -- Setting Up Database and Models -- Creating a Model for a Database Table -- Retrieving Data -- Using Model to Retrieve Data -- More on Data Retrieval -- Saving and Updating Data -- Saving Data -- Updating a Record --
- More on the save() Method -- Updating a Single Field -- Batch Update -- Deleting Data -- Deleting a Single Record -- Placing Your Own Logic Inside Model -- Create and Use Your Own Model Method -- Validating Your Data -- Adding Validation to Our Model -- Summary -- Chapter 6: ORM -- Working with Simple Associations -- Defining One-To-Many Relationship in Models -- Retrieving Related Model Data in One-To-Many Relation -- Saving Related Model Data in One-To-Many Relation -- Adding More than One Association of the Same Type -- One-To-One Relation -- Customizing Association Characteristics -- Working with Complex Associations -- Defining Many-To-Many Relationship in Models -- Retrieving Related Model Data in Many-To-Many Relation -- Saving Related Model Data in Many-To-Many Relation -- Deleting Associated Data -- Changing Association On The Fly -- Summary -- Chapter 7: Views -- Working with Layouts -- Creating Custom Layouts -- Using Elements -- Creating and Using Element --
- Working with Helpers -- Creating and Using Your Own Helper -- Creating Forms to Take User Input -- Summary -- Chapter 8: Using Shells --T.