CakePHP Application Development: Step-by-step introduction to rapid web development using the open-source MVC CakePHP framework (Paperback)

Ahsanul Bari, Anupom Syam

  • 出版商: Packt Publishing
  • 出版日期: 2008-06-30
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 332
  • 裝訂: Paperback
  • ISBN: 1847193897
  • ISBN-13: 9781847193896
  • 相關分類: PHP
  • 無法訂購

買這商品的人也買了...

商品描述

In Detail

Cake is a rapid development framework for PHP that uses well-known design patterns and provides a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss of flexibility. It means you can code faster, your code is better, and it makes writing Web 2.0-style apps a snap.

This book offers step-by-step instructions to learn the CakePHP framework and to quickly develop and deploy web-based applications. It introduces the MVC pattern and coding styles using practical examples. It takes the developer through setting up a CakePHP development and deployment environment, and develops an example application to illustrate all of the techniques you need to write a complete, non-trivial application in PHP. It aims to assist PHP programmers to rapidly develop and deploy well-crafted and robust web-based applications with CakePHP.

What you will learn from this book?

  • Develop well-structured applications faster, using CakePHP's MVC
  • Install and set up CakePHP
  • Create and configure your database to build a bookmark manager interface step by step
  • Build a model that that integrates with your database and provides basic features to your application: inserts, updates, deletes, searches, and relationships
  • Create views that present the user interface in an attractive, organized, and maintainable way
  • Develop controllers to interact with model classes, use callback functions, and create reusable components
  • Prototype applications fast using scaffolding to auto-generate user interface code
  • Create custom user interfaces using layouts, elements, helper classes, and CakePHP's FormHelper
  • Build complex data models with multiple related tables, using Cake associations
  • Enhance your data models by adding new functionalities like user authentication and data validation
  • Automate repetitive tasks and speed up development using shells
  • Reduce the amount of code you write yourself using Bake to automatically generate essential code based on your database design
  • Add interactivity using JavaScript and AJAX
  • Work with user pages, search, pagination, and RSS

Approach

This book starts by installing Cake and building our first application, then looking at each main component of a CakePHP application in detail. We then learn how to build Web 2.0 style applications quickly using a case study application. The book is packed with example code and demo applications, so that you can see techniques in action.

Who this book is written for?

If you already know PHP and want to develop cutting-edge Web 2.0 applications, or see how to write code in a faster, more productive way, then this book is ideal for you.

商品描述(中文翻譯)

詳細內容

Cake 是一個快速開發的 PHP 框架,使用廣為人知的設計模式,並提供一個結構化的框架,使各級 PHP 使用者能夠快速開發穩健的網頁應用程式,而不會失去靈活性。這意味著你可以更快地編碼,你的程式碼更好,並且使撰寫 Web 2.0 風格的應用程式變得輕而易舉。

本書提供逐步指導,幫助讀者學習 CakePHP 框架,並快速開發和部署基於網頁的應用程式。它介紹了 MVC 模式和編碼風格,並使用實際範例進行說明。書中將引導開發者設置 CakePHP 的開發和部署環境,並開發一個範例應用程式,以說明撰寫完整且非平凡的 PHP 應用程式所需的所有技術。其目的是協助 PHP 程式設計師快速開發和部署精心設計且穩健的基於網頁的應用程式。

你將從本書中學到什麼?

- 使用 CakePHP 的 MVC 更快地開發結構良好的應用程式
- 安裝和設置 CakePHP
- 逐步創建和配置你的資料庫,以建立書籤管理介面
- 建立與資料庫整合的模型,並為你的應用程式提供基本功能:插入、更新、刪除、搜尋和關聯
- 創建以吸引人、有組織且易於維護的方式呈現使用者介面的視圖
- 開發控制器以與模型類別互動,使用回調函數,並創建可重用的元件
- 使用 scaffolding 快速原型應用程式,自動生成使用者介面程式碼
- 使用佈局、元素、輔助類別和 CakePHP 的 FormHelper 創建自訂使用者介面
- 使用 Cake 關聯建立具有多個相關表的複雜資料模型
- 通過添加新功能如使用者身份驗證和資料驗證來增強你的資料模型
- 使用 shells 自動化重複性任務並加速開發
- 使用 Bake 根據你的資料庫設計自動生成必要的程式碼,減少你自己編寫的程式碼量
- 使用 JavaScript 和 AJAX 增加互動性
- 處理使用者頁面、搜尋、分頁和 RSS

方法

本書從安裝 Cake 開始,並建立我們的第一個應用程式,然後詳細介紹 CakePHP 應用程式的每個主要組件。接著,我們學習如何使用案例研究應用程式快速構建 Web 2.0 風格的應用程式。本書充滿了範例程式碼和演示應用程式,讓你能夠看到技術的實際應用。

本書的讀者對象

如果你已經了解 PHP,並希望開發尖端的 Web 2.0 應用程式,或想要了解如何以更快、更高效的方式編寫程式碼,那麼本書非常適合你。