Development. CakePHP Application. development using the open-source MVC. Step-by-step introduction to rapid web. CakePHP framework.



Similar documents
Rails Cookbook. Rob Orsini. O'REILLY 8 Beijing Cambridge Farnham Koln Paris Sebastopol Taipei Tokyo

Grails 1.1. Web Application. Development. Reclaiming Productivity for Faster. Java Web Development. Jon Dickinson PUBLISHING J MUMBAI BIRMINGHAM

CAKEPHP & EXTJS - RESPONSIVE WEB TECHNOLOGIES

Elgg 1.8 Social Networking

Preface. Motivation for this Book

Web Development Frameworks

COURSE CONTENT FOR WINTER TRAINING ON Web Development using PHP & MySql

Multi-tenancy with CakePHP. Robert Scherer M-Invent GmbH

Web Application Development and Frameworks

Framework as a master tool in modern web development

Open-source, on-demand Program Management Software

Annex E - Capability Building Policy

Web Analytics Big Three Definitions Version 1.0

LAMP [Linux. Apache. MySQL. PHP] Industrial Implementations Module Description

Choosing a Content Management System (CMS)

What s really under the hood? How I learned to stop worrying and love Magento

Ruby on Rails is a web application framework written in Ruby, a dynamically typed programming language The amazing productivity claims of Rails is

1 open source' I community experience distilled. Piwik Web Analytics Essentials. Stephan A. Miller

EZcast technical documentation

Open Source Content Management System for content development: a comparative study

Administrator Operations Guide

OpenAM. 1 open source 1 community experience distilled. Single Sign-On (SSO) tool for securing your web. applications in a fast and easy way

Developing ASP.NET MVC 4 Web Applications MOC 20486

A Comparative Study of Web Development Technologies Using Open Source and Proprietary Software

Web Development using PHP (WD_PHP) Duration 1.5 months

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Bubble Code Review for Magento

Professional Mailbox Software Setup Guide

J j enterpririse. Oracle Application Express 3. Develop Native Oracle database-centric web applications quickly and easily with Oracle APEX

Workshop on Using Open Source Content Management System Drupal to build Library Websites Hasina Afroz Auninda Rumy Saleque

Developing ASP.NET MVC 4 Web Applications

Nginx 1 Web Server Implementation

Bazaarvoice SEO implementation guide

Bachelor Project System (BEPsys)

Seamless Web Data Entry for SAS Applications D.J. Penix, Pinnacle Solutions, Indianapolis, IN

SaaS-Based Employee Benefits Enrollment System

Magento Search Extension TECHNICAL DOCUMENTATION

Installation, Configuration, and Usage

INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP

Open-source, on-demand Baobab Program Management TM. System. Case Study

Bijlage1. Software Requirements Specification CIS. For. Version 1.0 final. Prepared by Saidou Diallo. HvA/Inaxion. November 2009

ASP.NET Using C# (VS2012)

Project Orwell: Distributed Document Integrity Verification

SharePoint Wiki Redirect Installation Instruction

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

SYSTEM DEVELOPMENT AND IMPLEMENTATION

Programming Fundamentals of Web Applications Course 10958A; 5 Days

PHP Integration Kit. Version User Guide

DIPLOMA IN WEBDEVELOPMENT

Design and Functional Specification

Zabbix Manual.

Building Library Website using Drupal

Audience Profile This course is intended for any developer that is tasked with creating applications that interface with O365.

FileMaker Server 9. Custom Web Publishing with PHP

Document management and exchange system supporting education process

How To Test Your Web Site On Wapt On A Pc Or Mac Or Mac (Or Mac) On A Mac Or Ipad Or Ipa (Or Ipa) On Pc Or Ipam (Or Pc Or Pc) On An Ip

Beyond The Web Drupal Meets The Desktop (And Mobile) Justin Miller Code Sorcery Workshop, LLC

Features & Benefits Summary. The Ulitmate Platform for Business Process Customization

Advanced Web Development SCOPE OF WEB DEVELOPMENT INDUSTRY

Indian Journal of Science International Weekly Journal for Science ISSN EISSN Discovery Publication. All Rights Reserved

A Web- based Approach to Music Library Management. Jason Young California Polytechnic State University, San Luis Obispo June 3, 2012

Intellect Platform - Tables and Templates Basic Document Management System - A101

Sugar Open Source Version 3.5. User Guide

Drupal CMS for marketing sites

MyReports Recommended Browser Settings MYR-200a

Developing Offline Web Application

Skills for Employment Investment Project (SEIP)

W3Perl A free logfile analyzer

Installing Magento Extensions

The Ultimate Magento


Java/J2EE or Web Developer. Formal Education. Technical knowledge. Spoken Languages

Criteria for web application security check. Version

LDAPCON Sébastien Bahloul

Sitecore Security Hardening Guide

Ruby On Rails. CSCI 5449 Submitted by: Bhaskar Vaish

Administering a Microsoft SQL Server 2000 Database

Customization and Configuration in Microsoft Dynamics CRM 4.0

Case Study. SaaS Based Multi-Store Market Place Brainvire Infotech Pvt. Ltd Page 1 of 5

Best Free Magento Extensions for Social Network By : M Connect Media

Pragmatic Version Control

An Introduction to the Development of Web Applications using Ruby on Rails with Ajax

Shipbeat Magento Module. Installation and user guide

Content Management Systems: Drupal Vs Jahia

Taxi Service Design Description

Web Hosting Getting Started Guide

Transcription:

CakePHP Application Development Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework Ahsanul Bari Anupom Syam PUBLISHING BIRMINGHAM - MUMBAI

Preface 1 What This Book Covers 1 Who is This Book for 2 Conventions 2 Reader Feedback 3 Customer Support 3 Downloading the Example Code for the Book 3 Errata 4 Questions 4 Introduction to CakePHP 5 What is CakePHP? 5 A PHP Framework 6 Common Design Patterns 6 Rapid Web Development 6 Works with PHP4 and PHP5 7 CakePHP is Free and Open Source 7 Improved Code Structure 7 Understanding the MVC Pattern 8 Models 8 Controllers 8 Views 9 How It Works 9 Faster Development 10 Less Configuration, More Convention 10 Auto Code Generation 10 Quick Access to Related Data 10 Built-in Commonly Used Functionalities 11 Versions of CakePHP: 1.1 and 1.2 12 Summary 12

A Quick Installation 13 Downloading CakePHP 13 Platform Requirements 17 Configuring Apache 17 AllowOverwrite is Set to All 17 Mod_rewrite Module is Loaded 18 Setting Up Cake in Web Root 18 Running Cake for the First Time 20 Summary 20 A Quick App 21 Making Sure the Oven is Ready 22 CakeTooDoo: a Simple To-do List Application 22 Configuring Cake to Work with a Database 23 Writing our First Model 25 Writing our First Controller 27 Viewing All Tasks in CakeTooDoo 29 Adding a New Task 32 Editing a Task 36 Adding Data Validation 39 Deleting a Task from CakeTooDoo 40 Viewing Completed Tasks and Pending Tasks 42 Formatting Date and Time 44 Creating the CakeTooDoo Homepage 45 Summary 47 Controllers: Programming Application Logic 49 Interacting with Model 50 Attaching Models and Controllers 50 Action, Parameters, and Views 52 Interacting with View 53 Actions and Parameters 55 Getting Post Data from the View 61 Redirecting 63 AppController: The Parent Controller 65 Working with Components 68 Summary 71 Models: Accessing Data 73 Setting Up Database and Models 74 Creating a Model for a Database Table 74 Retrieving Data 79 Using Model to Retrieve Data 79

More on Data Retrieval 82 Saving and Updating Data 91 Saving Data 91 Updating a Record 95 More on the save() Method 101 Updating a Single Field 102 Batch Update 102 Deleting Data 103 Deleting a Single Record 103 Placing Your Own Logic Inside Model 106 Create and Use Your Own Model Method 107 Validating Your Data 112 Adding Validation to Our Model 112 Summary 118 ORM: Modelling the Table Relationship 119 Working with Simple Associations 120 Defining One-To-Many Relationship in Models 120 Retrieving Related Model Data in One-To-Many Relation 123 Saving Related Model Data in One-To-Many Relation 128 Adding More than One Association of the Same Type 131 One-To-One Relation 132 Customizing Association Characteristics 133 Working with Complex Associations 134 Defining Many-To-Many Relationship in Models 134 Retrieving Related Model Data in Many-To-Many Relation 137 Saving Related Model Data in Many-To-Many Relation 140 Deleting Associated Data 141 Changing Association On The Fly 142 Summary 143 Views: Creating User Interfaces 145 Working with Layouts 146 Creating Custom Layouts 146 Using Elements 152 Creating and Using Element 152 Working with Helpers 156 Creating and Using Your Own Helper 157 Creating Forms to Take User Input 160 Summary 164

Using Shells: Get Further. Faster 165 Setting Up the Cake Shell 166 Setting Up the Cake Shell in Windows 166 Setting Up the Cake Shell in *nix 168 Baking an Application 170 Creating and Configuring the Database 170 Baking Models 174 Baking Controllers 181 Baking Views 186 Summary 191 Making Quickwall: The Basics 193 What is This Quickwall All About? 194 Setting Up Cake 194 Creating and Connecting the Database 196 Creating and Defining Relationships between Models 199 Creating the Basic Controller Actions and Their Views 201 Adding Custom Layout 207 Adding Forms to Add New Questions and Answers 215 Summary 223 Quickwall: User Authentication 225 Creating the User Model and the Users Controller 226 Making the User Sign Up Process 229 Adding Email Confirmation to Sign Up 238 Integrating Authentication: Database and Models 245 Integrating Authentication: Controllers 249 Integrating Authentication: Views 254 Remembering User with Cookie 259 Summary 264 Quickwall: JavaScript and AJAX 265 Adding JavaScript Validation 265 AJAX Link to Show Own Questions 270 AJAX AutoComplete to Search Users 276 AJAX Form Submit to View Questions of a User 281 In-Line Editing to Edit Own Answers 284 Summary 287 2g9_ Quickwall: Making It Better Making Dates More Readable 289 Creating a User Page 293 Linking the Search Page to the User Page 298

Adding Pagination 299 Adding RSS Feeds 302 Summary 306 Index 307