Free Sample
+ Collection

Instant Building Multi-Page Forms with Yii How-to

Uday Sawant

Learn to create multi-page AJAX enabled forms using Yii
RRP $12.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782166429
Paperback50 pages

About This Book

  • 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

Who This Book Is 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.

Table of Contents

Chapter 1: Instant Building Multi-Page Forms with Yii How-to
Getting started with Yii (Simple)
Connecting to the database (Simple)
Using the Gii tool (Simple)
Creating basic forms (Simple)
Building multipage forms (Intermediate)
Validating forms (Intermediate)
AJAX forms (Advanced)
Uploading files (Advanced)
Using multiple models (Intermediate)
Customizing looks (Advanced)

What You Will Learn

  • 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

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.


Read More