The Yii Cookbook
The Yii Cookbook is a collection of Yii tutorials, each addressing a specific development task. Everyone with a Yii forum account can participate in creating or editing tutorial pages here.
Note, by using and contributing to this cookbook, you agree to the terms of the Yii documentation.
Currently we have the following cookbook pages available:
- Add charts / print buttons to your webapp.
- Add information to Yii::app()->user by extending CWebUser
- Add information to Yii::app()->user by extending CWebUser (better version)
- Adding login form to each page
- Advanced CTabView using CClipWidget
- AutoTimestampBehavior
- Beginner / Intro Tutorials (please add to / update this list)
- Behaviors & events
- By Example: CHtml
- CJuiDialog and AjaxSubmitButton
- Creating a database-driven hierarchical Structure combined with CMenu and superfish
- Creating a dependent dropdown
- CSS, JS and image URL shortcut methods
- Display an AJAX tree from your DB using CTreeView
- Eclipse PDT - code-hints, references and other goodies
- Enabling Gzip
- Encapsulate db and module configurations
- First Yii App: CTabView
- How to access a component of a module from within the module itself
- How to add ajax-loading indicators
- How to add a named scope to ActiveRecords with a behavior
- How to add more information to Yii::app()->user
- How to automate timestamps in ActiveRecord models
- How To Connect With Twitter From Yii
- How to create a breadcrumb widget
- How to create/save more Model inputs and make them repeatable with jQuery
- How to customize the error message of a validation rule
- How to customize Yii core messages?
- How to display static pages in Yii?
- How to extend yiic shell commands
- How to filter data using a dropdown list?
- How to generate Web feed for an application
- How to hide index.php on nginx
- How to implement multiple page layouts in an application
- How to install pdo_oci
- How to log changes of ActiveRecords?
- How to log context information to logger (session id, user, ...)
- How to make customizable Db Table prefixes using ActiveRecord
- How to make use of a fragment cache
- How to modify application config settings from within the application
- How to setup FCKeditor
- How to setup RBAC with a php file
- How to set up Unicode
- How to setup yiic on WAMP (XP/Vista)
- How to upload a file using a model
- How to use a single form to collect data for two or more models?
- How to use default layout for error pages instead of errorXXX views
- How to use Highslide for image popups
- How to use ldap in UserIdentity for authentication
- How to use markItUp! on a text field for full WYSIWYG editing
