About the Yii Application Development Cookbook

Yii Application Development Cookbook
  • Language: English
  • Paperback: 431 pages [ 235mm × 191mm ]
  • Release Date: May 2013
  • ISBN: 1782163107
  • ISBN 13: 978-1-78216-310-7
  • Publisher: PACKT Publishing

Looking for the first edition?

Yii 1.1 Application Development Cookbook
  • Language: English
  • Paperback: 392 pages [ 235mm × 191mm ]
  • Release Date: August 2011
  • ISBN: 1849515484
  • ISBN 13: 978-1-84951-548-1
  • Publisher: PACKT Publishing

Yii Application Development Cookbook is a recipe book about Yii framework, a very flexible and high-performance application development framework written in PHP. The book is divided into 13 independent chapters full of recipes that will show you how to use Yii efficiently. You will learn about hidden framework gems, using core features, creating your own reusable code base, using test-driven development, and many more topics that will bring your knowledge to a new level!

Recently the book got its second edition where additionally to some new, updated and rewritten recipes all errata from the first edition was fixed.

What you will learn from this book

  • Make internal Yii features, such as events and collections, useful
  • Get the maximum out of your Controller and Views and make them reusable
  • Work with jQuery, JavaScript, and AJAX the Yii way
  • Use "hidden" core Yii input widgets and write your own widgets
  • Make your application error-free using the TDD approach
  • Use Active Record efficiently
  • Utilize Zii components such as grids and data providers
  • Implement, package, and share your code as a reusable extension
  • Automate error tracking and understand the Yii log and stack trace
  • Keep your implementation secure, filter input, and escape output
  • Tune your application for best performance and learn general performance principles and Yii-related settings
  • Include non-Yii code, such as Zend Framework or PEAR, in your application
  • Simplify team development and manage Yii configuration in a very efficient way


This book is a collection of Yii recipes with chapters independent of each other. It is full of practical useful solutions and concepts explained with code and the required illustrations.

Who this book is written for

If you are a developer with a good knowledge of PHP5, are familiar with the basics of Yii, checked its definitive guide and have tried to develop applications using Yii, then this book is for you. Knowledge of the object oriented approach and MVC pattern will be a great advantage as Yii uses these extensively.

About the author

is an experienced web developer and a passionate member of Yii framework core team. He likes OpenSource, languages, UX, movies and travelling.