Wiki

Sorted by date (updated)X
Displaying 381-390 of 704 result(s).

Understanding "Safe" Validation Rules

Updated about a year ago by GismoFAQs11 comments – viewed 74,746 times – ( +90 / -1 ) – version 1.1
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

Using CButtonColumn to customize buttons in CGridView

Updated about a year ago by GismoHow-tos17 comments – viewed 195,993 times – ( +97 ) – version 1.1
CGridView is a one of most flexible widgets in Yii and example its flexibility is CButtonColumn used to build buttons for steering model in each grid row. Here in this how-to we will explain ways user can customize CButtonColumn to flexibly fit it to its needs.

Secure password hashing with bCrypt

Updated about a year ago by Ivo PereiraHow-tos3 comments – viewed 18,555 times – ( +9 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.

How to use YiiBooster Bootstrap Gallery

Updated about a year ago by Antonio RamirezHow-tos3 comments – viewed 20,831 times – ( +4 ) – version 1.1
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

AssetManager: clearing browser's cache on site update

Updated about a year ago by dhampikHow-tos4 comments – viewed 22,962 times – ( +18 ) – version 1.1
If you like the things to be short and clear, then you can skip right to a short summary of instructions at the end of this article.

Create sitemap.xml file dynamically on root folder with one hit

Updated about a year ago by kiran sharmaHow-tos1 comment – viewed 10,407 times – ( +5 / -5 ) – version 1.1
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

YiiBoilerplate - Setup a professional project structure in seconds

Updated about a year ago by Antonio RamirezOthers53 comments – viewed 46,348 times – ( +47 ) – version 1.1
YiiBoilerplate
tags: directory, config

Accessing data in a join table with the related models

Updated about a year ago by kroweHow-tos8 comments – viewed 70,920 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.

Create your own Validation Rule

Updated about a year ago by GismoHow-tos11 comments – viewed 126,680 times – ( +74 / -3 ) – version 1.1
Some times the core validation rules provided by Yii won't satisfy all your needs, so you'll need to create your very own validation rule.

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Updated about a year ago by Maurizio Domba CerinTips3 comments – viewed 9,396 times – ( +1 ) – version 1.1
I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it or on the 'select all' checkbox.