Instant CakePHP Starter
Mark Robert Henderson
- 出版商: Packt Publishing
- 出版日期: 2013-04-07
- 售價: $1,000
- 貴賓價: 9.5 折 $950
- 語言: 英文
- 頁數: 76
- 裝訂: Paperback
- ISBN: 1782162607
- ISBN-13: 9781782162605
-
相關分類:
PHP
海外代購書籍(需單獨結帳)
相關主題
商品描述
Learn everything you need to develop a feature-rich CakePHP app, from installation to deployment
Overview
- Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
- Focus on an iterative practical approach to learn the myriad features of CakePHP
- Learn about Models, Views, and Controllers as well as scaffolding, themes, behaviors, and routing
- Scaffold and generate your application code using the command-line “bake” tool almost exclusively
In Detail
CakePHP is an exciting tool focused on writing web applications in PHP in a simple and fast way that requires less code. You can rapidly build prototypes using code generation and scaffolding. It doesn't require any complicated XML or YAML files. You just need to set up your database and you're ready to bake!
Instant CakePHP Starter contains several tutorials that together build a powerful and engaging application, and in the process teaches you many features of CakePHP, both common and obscure. It is not simply a listing and explanation of features you could get from reading the online documentation. This book is an exploration of the experience of installing, building, and deploying a CakePHP application in a step by step way.
This book begins by installing CakePHP locally, and then deploying your application to production.
We move on by scaffolding our application using the wonderful command-line tool that is packaged with CakePHP, bake. With our code generated for us, we install a theme to instantly update the look of the app, iterating over it a few times to add URLs, an installable JavaScript component, and a JSON service.
We conclude with a discussion of the community. In short, Instant CakePHP Starter is a kick start to your experience with both CakePHP and its community.
What you will learn from this book
- Install the development version of CakePHP
- Deploy the development code to a live production server, using AppFog
- Use the command line "bake" tool to auto-generate Models, Views, and Controllers
- Set up a JSON service for JavaScript and other clients to consume
- Define your database schema in code and use the "cake" command line tool to generate and execute the SQL automatically
- Create and update themes, which are pluggable versions of the Views you know and love
Approach
Get to grips with a new technology, understand what it is and what it can do for you, and then get to work with the most important features and tasks.This book is a practical, step-by-step tutorial that teaches you about Models, Views, Controllers, scaffolding, themes, behaviors, and routing in CakePHP.
Who this book is written for
This book is for those who have experience in writing HTML/CSS, and a little bit of JavaScript and PHP, and want to learn the basics of CakePHP in an engaging manner.
商品描述(中文翻譯)
學習開發功能豐富的 CakePHP 應用程式所需的一切,從安裝到部署
概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時成果。
- 專注於迭代的實踐方法,學習 CakePHP 的各種功能。
- 了解模型、視圖和控制器,以及腳手架、主題、行為和路由。
- 幾乎完全使用命令行“bake”工具來腳手架和生成應用程式代碼。
詳細內容
CakePHP 是一個令人興奮的工具,專注於以簡單快速的方式用 PHP 編寫網頁應用程式,並且需要更少的代碼。您可以快速使用代碼生成和腳手架來構建原型。它不需要任何複雜的 XML 或 YAML 文件。您只需設置數據庫,就可以開始使用!
Instant CakePHP Starter 包含幾個教程,這些教程共同構建一個強大且引人入勝的應用程式,並在過程中教您許多 CakePHP 的功能,無論是常見的還是冷門的。這不僅僅是列出和解釋您可以從在線文檔中獲得的功能。本書探索了安裝、構建和部署 CakePHP 應用程式的經驗,並以逐步的方式進行。
本書首先介紹如何在本地安裝 CakePHP,然後將您的應用程式部署到生產環境。
接著,我們使用隨 CakePHP 打包的出色命令行工具 bake 來腳手架我們的應用程式。隨著代碼的自動生成,我們安裝一個主題,以立即更新應用程式的外觀,並多次迭代以添加 URL、可安裝的 JavaScript 組件和 JSON 服務。
最後,我們將討論社群。簡而言之,Instant CakePHP Starter 是您與 CakePHP 及其社群互動的起點。
您將從本書中學到的內容
- 安裝 CakePHP 的開發版本
- 使用 AppFog 將開發代碼部署到實際生產伺服器
- 使用命令行 'bake' 工具自動生成模型、視圖和控制器
- 為 JavaScript 和其他客戶端設置 JSON 服務
- 在代碼中定義數據庫架構,並使用 'cake' 命令行工具自動生成和執行 SQL
- 創建和更新主題,這些主題是您所熟悉和喜愛的視圖的可插拔版本
方法
掌握新技術,了解它是什麼以及它能為您做什麼,然後開始處理最重要的功能和任務。本書是一個實用的逐步教程,教您有關 CakePHP 的模型、視圖、控制器、腳手架、主題、行為和路由。
本書的讀者對象
本書適合那些有 HTML/CSS 編寫經驗,並且對 JavaScript 和 PHP 有一些了解,想要以引人入勝的方式學習 CakePHP 基礎知識的人。