Sorted by date (updated)X
Displaying 451-460 of 761 result(s).

Understanding "Safe" Validation Rules

Updated 2 years ago by GismoFAQs11 comments – viewed 97,202 times – ( +93 / -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 2 years ago by GismoHow-tos18 comments – viewed 242,224 times – ( +99 ) – 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 2 years ago by Ivo PereiraHow-tos3 comments – viewed 21,386 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 2 years ago by Antonio RamirezHow-tos4 comments – viewed 24,874 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 2 years ago by dhampikHow-tos4 comments – viewed 29,657 times – ( +19 ) – 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 3 years ago by kiran sharmaHow-tos1 comment – viewed 13,035 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 3 years ago by Antonio RamirezOthers53 comments – viewed 53,429 times – ( +48 ) – version 1.1
tags: directory, config

Accessing data in a join table with the related models

Updated 3 years ago by kroweHow-tos8 comments – viewed 89,095 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 3 years ago by GismoHow-tos13 comments – viewed 161,794 times – ( +75 / -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 3 years ago by Maurizio Domba CerinTips3 comments – viewed 11,752 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.