Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?
Simple Yii Script for performing CRUD operations:
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.
Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...
This wiki has been replaced by Use crypt() for password storage.
This wiki is a work in progress.
Application configuration determines how an Yii application should behave, because it is the only parameter passed in the entry script. An application, on the other hand, needs to behave differently under different circumstances. For example, an application may need different configurations when running in production mode, development mode and testing mode; In a team development environment, each...
After adding proper form to the main layout, like:
With yii you're able to create ajax requests and updates easily. But most times you always want to show a loading indicatior to your user.
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
I found a better solution.
Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps
Inspired by it I extended the CButtonColumn class like this: