Cover image for CakePHP Application Development.
CakePHP Application Development.
Title:
CakePHP Application Development.
Author:
Bari, Ahsanul.
ISBN:
9781847193902
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (346 pages)
Contents:
CakePHP Application Development -- Table of Contents -- CakePHP Application Development -- Credits -- About the Authors -- About the Reviewer -- Preface -- What This Book Covers -- Who is This Book for -- Conventions -- Reader Feedback -- Customer Support -- Downloading the Example Code for the Book -- Errata -- Questions -- 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 -- 2. A Quick Installation -- Downloading CakePHP -- Time for Action -- What Just Happened? -- Platform Requirements -- Configuring Apache -- AllowOverwrite is Set to All -- Mod_rewrite Module is Loaded -- Setting Up Cake in Web Root -- Time for Action -- What Just Happened? -- Running Cake for the First Time -- Summary -- 3. A Quick App -- Making Sure the Oven is Ready -- CakeTooDoo: a Simple To-do List Application -- Configuring Cake to Work with a Database -- Time for Action: Creating and Configuring the Database -- What Just Happened? -- Writing our First Model -- Time for Action: Creating the Task Model -- What Just Happened? -- Writing our First Controller -- Time for Action: Creating the Tasks Controller -- What Just Happened? -- Viewing All Tasks in CakeTooDoo -- Time for Action: Viewing All Tasks -- What Just Happened? -- Adding a New Task -- Time for Action: Creating the Add Task Form -- What Just Happened? -- Editing a Task -- What Just Happened? -- Adding Data Validation.

Time for Action: Adding Data Validation to Check for Empty Title -- What Just Happened? -- Deleting a Task from CakeTooDoo -- Time for Action: Adding Data Validation -- What Just Happened? -- Viewing Completed Tasks and Pending Tasks -- Time for Action: Viewing Completed and Pending Tasks -- What Just Happened? -- Formatting Date and Time -- Time for Action: Formatting the Created and Modified Time -- What Just Happened? -- Creating the CakeTooDoo Homepage -- Time for Action: CakeTooDoo Homepage -- What Just Happened? -- Summary -- 4. Controllers: Programming Application Logic -- Interacting with Model -- Attaching Models and Controllers -- Time for Action: Controller without a Model -- What Just Happened? -- Action, Parameters, and Views -- Interacting with View -- Time for Action: Passing Variables to a View -- What Just Happened? -- Actions and Parameters -- Time for Action: Understanding Actions and Parameters -- What Just Happened? -- Time for Action: Handling more than One Request Parameter -- What Just Happened? -- How Cake Handles an Incoming Request? -- Getting Post Data from the View -- Time for Action: Getting Post Data from the View -- What Just Happened? -- Redirecting -- Time for Action: Redirecting from One Action to Another -- What Just Happened? -- AppController: The Parent Controller -- Time for Action: Adding Common Functionalities to all Controllers -- What Just Happened? -- Working with Components -- Time for action: Creating and Using Reusable Components -- What Just Happened? -- Summary -- 5. Models: Accessing Data -- Setting Up Database and Models -- Creating a Model for a Database Table -- Time for Action: Creating a Database Table and Its Model -- What Just Happened? -- Retrieving Data -- Using Model to Retrieve Data -- Time for Action: Retrieving Data Using Model -- What Just Happened? -- More on Data Retrieval.

More on find() -- Writing Complex Conditions -- Magic Find Functions -- Reading a Single Field -- Saving and Updating Data -- Saving Data -- Time for Action: Saving Data into the Database -- What Just Happened? -- Updating a Record -- Time for Action: Updating a Database Record -- What Just Happened? -- More on the save() Method -- Updating a Single Field -- Batch Update -- Deleting Data -- Deleting a Single Record -- Time for Action: Deleting a Single Record -- What Just Happened? -- Placing Your Own Logic Inside Model -- Create and Use Your Own Model Method -- Time for Action: Create and Use Your Own Model Method -- What Just Happened? -- Making Custom SQL Queries -- Validating Your Data -- Adding Validation to Our Model -- Time for Action: Adding Validation to Our Model -- What Just Happened? -- More on Data Validation -- Custom Validation Methods -- Summary -- 6. ORM: Modelling the Table Relationship -- Working with Simple Associations -- Defining One-To-Many Relationship in Models -- Time for Action: Defining One-To-Many Relation -- What Just Happened? -- Retrieving Related Model Data in One-To-Many Relation -- Time for Action: Retrieving Related Model Data -- What Just Happened? -- Saving Related Model Data in One-To-Many Relation -- Time for Action: Saving Related Model Data -- What Just Happened? -- 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 -- Time for Action: Defining Many-To-Many Relation -- What Just Happened? -- Retrieving Related Model Data in Many-To-Many Relation -- Time for Action: Retrieving Related Model Data -- What Just Happened? -- Saving Related Model Data in Many-To-Many Relation -- Time for Action: Saving Related Model Data -- What Just Happened?.

Deleting Associated Data -- Changing Association On The Fly -- Summary -- 7. Views: Creating User Interfaces -- Working with Layouts -- Creating Custom Layouts -- Time for Action: Creating a Custom Layout -- What Just Happened? -- Using Elements -- Creating and Using Element -- Time for Action: Creating and Using Elements -- What Just Happened? -- Working with Helpers -- Creating and Using Your Own Helper -- Time for Action -- What Just Happened? -- Creating Forms to Take User Input -- Time for Action -- What Just Happened? -- Summary -- 8. Using Shells: Get Further, Faster -- Setting Up the Cake Shell -- Setting Up the Cake Shell in Windows -- Time for Action: Setting Up the Cake Shell in Windows -- What Just Happened? -- Setting Up the Cake Shell in *nix -- Time for Action: Setting Up the Cake Shell in *nix -- What Just Happened? -- Baking an Application -- Creating and Configuring the Database -- Time for Action: Creating and Configuring the Database -- What Just Happened? -- Baking Models -- Time for Action: Baking Models -- What Just Happened? -- Baking Controllers -- Time for Action: Baking Controllers -- What Just Happened? -- Baking Views -- Time for Action: Baking Views -- What Just Happened? -- Summary -- 9. Making Quickwall: The Basics -- What is This Quickwall All About? -- Setting Up Cake -- Time for Action: Setting Up Cake -- What Just Happened? -- Creating and Connecting the Database -- Time for Action -- What Just Happened? -- Creating and Defining Relationships between Models -- Time for Action -- What just Happened? -- Creating the Basic Controller Actions and Their Views -- Time for Action -- What Just Happened? -- Adding Custom Layout -- Time for Action -- What Just Happened? -- Adding Forms to Add New Questions and Answers -- Time for Action -- What Just Happened? -- Summary -- 10. Quickwall: User Authentication.

Creating the User Model and the Users Controller -- Time for Action -- What Just Happened? -- Making the User Sign Up Process -- Time for Action -- What Just Happened? -- Adding Email Confirmation to Sign Up -- Time for Action -- What Just Happened? -- Integrating Authentication: Database and Models -- Time for Action -- What Just Happened? -- Integrating Authentication: Controllers -- Time for Action -- What Just Happened? -- Integrating Authentication: Views -- Time for Action -- What Just Happened? -- Remembering User with Cookie -- Time for Action -- What Just Happened? -- Summary -- 11. Quickwall: JavaScript and AJAX -- Adding JavaScript Validation -- Time for Action -- What Just Happened? -- AJAX Link to Show Own Questions -- Time for Action -- What Just Happened? -- AJAX AutoComplete to Search Users -- Time for Action -- What Just Happened? -- AJAX Form Submit to View Questions of a User -- Time for Action -- What Just Happened? -- In-Line Editing to Edit Own Answers -- Time for Action -- What Just Happened? -- Summary -- 12. Quickwall: Making It Better -- Making Dates More Readable -- Time for Action -- What Just Happened? -- Creating a User Page -- Time for Action -- What Just Happened? -- Linking the Search Page to the User Page -- Time for Action -- What Just Happened? -- Adding Pagination -- Time for Action -- What Just Happened? -- Adding RSS Feeds -- Time for Action -- What Just Happened? -- Summary -- Index.
Abstract:
Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Added Author:
Electronic Access:
Click to View
Holds: Copies: