Cover image for Yii Application Development Cookbook.
Yii Application Development Cookbook.
Title:
Yii Application Development Cookbook.
Author:
Makarov, Alexander.
ISBN:
9781782163114
Personal Author:
Edition:
2nd ed.
Physical Description:
1 online resource (472 pages)
Contents:
Yii Application Development Cookbook Second Edition -- Table of Contents -- Yii Application Development Cookbook Second Edition -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Support files, eBooks, discount offers and more -- Why Subscribe? -- Free Access for Packt account holders -- Preface -- What this book covers -- What you need for this book -- Who this book is for -- Conventions -- Reader feedback -- Customer support -- Downloading the example code -- Errata -- Piracy -- Questions -- 1. Under the Hood -- Introduction -- Using getters and setters -- How to do it... -- How it works... -- There's more... -- See also -- Using Yii events -- How to do it... -- There's more... -- Further reading -- See also -- Using import and autoloading -- How to do it... -- How it works... -- There's more... -- Using exceptions -- How to do it… -- How it works… -- There's more... -- Configuring components -- How to do it… -- How it works… -- There's more... -- Configuring widget defaults -- How to do it… -- See also -- Using Yii core collections -- How to do it… -- Working with requests -- How to do it… -- There's more... -- 2. Router, Controller, and Views -- Introduction -- Configuring URL rules -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Generating URLs by path -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using regular expressions in URL rules -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating URL rules for static pages -- Getting ready -- How to do it... -- How it works... -- See also -- Providing your own URL rules at runtime -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using a base controller -- Getting ready -- How to do it...

How it works... -- Using external actions -- Getting ready -- How to do it... -- How it works... -- There's more… -- Displaying static pages with CViewAction -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Using flash messages -- Getting ready -- How to do it... -- How it works... -- There's more… -- Using the controller context in a view -- Getting ready -- How to do it... -- How it works... -- There's more… -- Reusing views with partials -- Getting ready -- How to do it... -- How it works... -- There's more… -- See also -- Using clips -- Getting ready -- How to do it... -- How it works... -- See also -- Using decorators -- Getting ready -- How to do it... -- How it works... -- There's more… -- See also -- Defining multiple layouts -- Getting ready -- How to do it... -- How it works... -- See also -- Paginating and sorting data -- Getting ready -- How to do it... -- How it works... -- There's more… -- 3. AJAX and jQuery -- Introduction -- Loading a block through AJAX -- Getting ready -- How to do it... -- How it works... -- There's more... -- Prevent including a bundled jQuery -- Further reading -- See also -- Managing assets -- Getting ready -- How to do it... -- How it works... -- There's more... -- What is inside the assets directory -- Publishing an entire directory -- Further reading -- See also -- Including resources in the page -- How to do it... -- How it works... -- There's more... -- Using custom script packages -- Registering linked resources -- Registering meta tags -- Further reading -- See also -- Working with JSON -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Passing configuration from PHP to JavaScript -- Getting ready -- How to do it... -- How it works... -- See also -- Handling variable number of inputs -- Getting ready.

How to do it... -- How it works... -- There's more… -- See also -- Rendering content at the client side -- Getting ready -- How to do it... -- How it works... -- There's more… -- See also -- 4. Working with Forms -- Introduction -- Writing your own validators -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- Uploading files -- Getting ready -- How to do it... -- How it works... -- There's more... -- File validation -- Further reading -- See also -- Adding CAPTCHA -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading: -- See also -- Customizing CAPTCHA -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating a custom input widget with CInputWidget -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- 5. Testing Your Application -- Introduction -- Setting up the testing environment -- Getting ready -- How to do it... -- There's more... -- See also -- Writing and running unit tests -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using fixtures -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Testing the application with functional tests -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Generating code coverage reports -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- 6. Database, Active Record, and Model Tricks -- Introduction -- Getting data from a database -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Defining and using multiple DB connections -- Getting ready -- How to do it... -- How it works... -- There's more... -- Cross-database relations -- Further reading -- See also.

Using scopes to get models for different languages -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Processing model fields with AR event-like methods -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Applying markdown and HTML -- Getting ready -- How to do it... -- How it works... -- There's more... -- Markdown syntax -- Yii markdown wrapper and usage -- See also -- Highlighting code with Yii -- Getting ready -- How to do it... -- How it works... -- There's more... -- Yii code highlighter -- More code highlighters -- See also -- Automating timestamps -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Setting up an author automatically -- Getting ready -- How to do it... -- How it works... -- See also -- Implementing single table inheritance -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Using CDbCriteria -- How to do it... -- How it works... -- There's more... -- See also -- 7. Using Zii Components -- Introduction -- Using data providers -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Using grids -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using data from related Active Record models -- Further reading -- See also -- Using lists -- Getting ready -- How to do it... -- How it works... -- There's more... -- Adding sorting -- Customizing templates -- Customizing markup and data displayed -- Further reading -- See also -- Creating custom grid columns -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- 8. Extending Yii -- Introduction -- Creating model behaviors -- Getting ready -- How to do it... -- How it works... -- There's more...

CActiveRecordBehavior and CModelBehavior -- More behavior types -- Further reading -- See also -- Creating components -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding existing application components -- Further reading -- See also -- Creating reusable controller actions -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Creating reusable controllers -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating a widget -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating CLI commands -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Creating filters -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating modules -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Creating a custom view renderer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Further reading -- See also -- Making extensions distribution-ready -- Getting ready -- How to do it... -- How it works... -- There's more... -- 9. Error Handling, Debugging, and Logging -- Introduction -- Using different log routes -- Getting ready -- How to do it... -- How it works... -- There's more... -- Yii::trace versus Yii::log -- Yii::beginProfile and Yii::endProfile -- Log messages immediately -- Further reading -- See also -- Analyzing the Yii error stack trace -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Logging and using the context information -- Getting ready -- How to do it... -- How it works... -- There's more... -- See also -- Implementing your own smart 404 handler -- Getting ready -- How to do it...

How it works...
Abstract:
This book is a collection of Yii recipes with chapters generally independent of each other. It is full of practically useful solutions and concepts explained with code and relevant screenshots and diagrams.This book is for developers with good PHP5 knowledge who have tried to develop applications using Yii. An object-oriented approach and MVC knowledge will be a great advantage as Yii uses these extensively.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: