Instant Building Multi-Page Forms with Yii How-to
暫譯: 即時使用 Yii 建立多頁表單的指南

Uday Sawant

  • 出版商: Packt Publishing
  • 出版日期: 2013-05-13
  • 售價: $1,190
  • 貴賓價: 9.5$1,131
  • 語言: 英文
  • 頁數: 50
  • 裝訂: Paperback
  • ISBN: 1782166424
  • ISBN-13: 9781782166429
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn to create multi-page AJAX enabled forms using Yii with this book and ebook

Overview

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Quick, easy-to-follow recipes with immediate results
  • Filled with useful tasks to improve maintainability of web applications
  • Customize your complex and lengthy forms to create easy-to-follow and concise multi-purpose forms

In Detail

Yii is a high-performance PHP framework for rapid web application development. It is well-designed, well-supported, easy to learn, and easy to maintain. Forms are the basic method used to collect information on the Internet, and in cases like user registration and payment process, there’s a lot of data to be presented and the lists can get lengthy.

Instant Building Multi-Page Forms with Yii is a simple and descriptive how-to that provides step-by-step recipes to help you in converting your lengthy forms into short, interactive forms. It will guide you through the inbuilt features of Yii framework to help you with this complex job.

The book starts with the basics of Yii and will guide you through creating simple forms before then converting your simple forms into multi-page forms. It will use the capabilities of Yii to ease the tasks required to do this.

Yii eases your work by providing options like database connectivity. We will also take a look at the automated code generation capabilities of Yii in generating forms and necessary CRUD operations, as well as looking at how to divide a single long form into multiple views with same controller/action, and then add form validations and AJAX support to the forms. We will also cover the upload process and how to customise Yii’s looks.

What you will learn from this book

  • Connect your application to different database servers
  • Use Gii tool to automate code generation
  • Create simple forms
  • Divide lengthy forms into multi-page forms
  • Add validations to forms
  • Define your own validation rules
  • Making your forms AJAX enabled

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks.A concise guide that delivers immediate results with practical recipes on customizing your forms.

Who this book is written for

This book is great for developers who have a basic understanding of Yii framework and want to learn some of the advanced, inbuilt features of Yii. It assumes that the reader has a basic knowledge of PHP development, how forms work, and AJAX operations.

商品描述(中文翻譯)

學習使用 Yii 創建多頁 AJAX 啟用的表單,透過本書和電子書

概述
- 立即學習新知!一本短小、快速、專注的指南,提供即時結果
- 簡單易懂的食譜,能迅速獲得結果
- 充滿有用的任務,以改善網頁應用程式的可維護性
- 自訂您的複雜且冗長的表單,創建易於遵循且簡潔的多用途表單

詳細內容
Yii 是一個高效能的 PHP 框架,用於快速的網頁應用程式開發。它設計良好、支援完善、易於學習且易於維護。表單是用於在互聯網上收集資訊的基本方法,在用戶註冊和支付過程等情況下,需要呈現大量數據,列表可能會變得冗長。

《即時構建多頁表單與 Yii》是一本簡單且描述性的操作指南,提供逐步的食譜,幫助您將冗長的表單轉換為簡短的互動表單。它將引導您了解 Yii 框架的內建功能,以協助您完成這項複雜的工作。

本書從 Yii 的基礎開始,將指導您創建簡單的表單,然後再將這些簡單的表單轉換為多頁表單。它將利用 Yii 的功能來簡化所需的任務。

Yii 透過提供資料庫連接等選項來簡化您的工作。我們還將探討 Yii 在生成表單和必要的 CRUD 操作方面的自動化代碼生成能力,以及如何將單個長表單劃分為多個視圖,並使用相同的控制器/動作,然後為表單添加驗證和 AJAX 支援。我們還將涵蓋上傳過程以及如何自訂 Yii 的外觀。

您將從本書中學到的內容
- 將您的應用程式連接到不同的資料庫伺服器
- 使用 Gii 工具自動化代碼生成
- 創建簡單的表單
- 將冗長的表單劃分為多頁表單
- 為表單添加驗證
- 定義您自己的驗證規則
- 使您的表單支持 AJAX

方法
本書充滿實用的逐步指導和清晰的解釋,針對最重要和有用的任務提供簡明的指南,並提供實用的食譜來自訂您的表單,能夠立即獲得結果。

本書的讀者對象
本書非常適合對 Yii 框架有基本了解的開發人員,並希望學習一些 Yii 的進階內建功能。假設讀者對 PHP 開發、表單的運作方式和 AJAX 操作有基本的知識。