Instant Building Multi-Page Forms with Yii How-to
Instant Building Multi-Page Forms with Yii How-to
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2013
Production Reference: 1160513
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78216-642-9
www.packtpub.com
Author
Uday Sawant
Reviewer
Sergey Malyshev
Acquisition Editor
Joanne Fitzpatrick
Commissioning Editor
Poonam Jain
Technical Editor
Zafeer Rais
Copy Editor
Aditya Nair
Project Coordinator
Suraj Bist
Proofreader
Maria Gould
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa
Cover Image
Valentina Dsilva
Uday Sawant is a software engineer with a specialization in LAMP stack and cloud computing. He has completed his Master's in Computer Science and has a wealth of experience in infrastructure management and networking. Currently he is working with a startup called Anveshan Technologies as a Sr. Software Engineer.
Sergey Malyshev is an IT specialist from Ukraine. He has been working in the IT industry for more than 15 years, eight of which he has devoted to the development of web applications. Out of the conviction that it's impossible to become a great specialist in all areas at the same time, he has chosen for himself PHP, MySQL, and JavaScript as top-priority directions. During his career, Sergey took part in developing dozens of different websites, social networks, CMS, CRM, and ERP systems. He is not only a developer but also an architect, a project manager, and a technical consultant. Apart from his participation in realizing some technical projects, he also organized various advance training courses for IT specialists in the companies where he was employed. As he has a degree in management, Sergey has taken part in the business process automation of companies specializing in software development.
At present, Sergey is working as a software engineer in the company Sugar CRM and deals with the development of one of the most popular customer relationship management systems in the world. Before this he worked on developing applications based on the Yii Framework. Some of them are the search engine for the real estate website LivingThere.com and the corporate CMS system WebModulite for the New York design agency Blue Fountain Media. Participation in these projects and also work on his own extension for debugging the Yii application's Yii Debug Toolbar has helped Sergey get vast experience and expert knowledge of the Yii framework.
Support files, eBooks, discount offers and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at
www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
<[email protected]>
for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
- Fully searchable across every book published by Packt
- Copy and paste, print and bookmark content
- On demand and accessible via web browser
Free Access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Instant Building Multi-Page Forms with Yii How-to is a simple and descriptive how-to that provides step-by-step recipes to help you convert your lengthy forms into short, interactive forms. It will show you the inbuilt features of the Yii framework to help you with this tricky task.
Getting started with Yii (Simple) helps you set the Yii environment and create a skeleton of the Yii application.
Connecting to the database (Simple) shows you how to set up a database connection in the Yii application.
Using the Gii tool (Simple) covers the automated code generation features provided by Yii. We will learn how to enable the Gii tool and create Models, CRUD, forms, and application modules.
Creating basic forms (Simple) helps you to create a basic single page form with Yii.
Building multipage forms (Intermediate) shows you how to split your lengthy single page form into multipage forms by validating the form fields and maintaining page data on each page.
Validating forms (Intermediate) gives you details on the form field validation helpers provided by Yii. We will look at various validation helpers, use validation rules provided by Yii, and set our own validation rules.
AJAX forms (Advanced) helps you enable AJAX support for forms. We will take a look at the AJAX helpers provided...