Wiki

Sorted by viewsX
Displaying 491-500 of 784 result(s).

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

Created 4 years ago by Xgamer99Tips3 comments – viewed 14,177 times – ( +1 / -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.

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 4 years ago by sebTips0 comments – viewed 14,158 times – ( +1 / -2 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

default csrf security and ajax post in one controller

Created 3 years ago by jasonbanTutorials3 comments – viewed 13,993 times – ( +1 / -4 ) – version 1.1
Hello Yii friends

AutoTimestampBehavior

Created 8 years ago by jonahTutorials1 comment – viewed 13,989 times – ( +2 / -3 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

How to ensure unicity to url

Created 5 years ago by zaccariaTips3 comments – viewed 13,948 times – ( +14 / -1 ) – version 1.1
Many time for SEO porpouses is important that each page will have a unique address.
tags: SEO, unique, URL

Facebook DeAuthorize callback URL and its response data.

Created 4 years ago by sirin kTutorials1 comment – viewed 13,796 times – ( +3 / -1 ) – version 1.1
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

How to: use github for download yii, create new app, and store our modules or extensions.

Created 5 years ago by sensorarioHow-tos1 comment – viewed 13,765 times – ( +8 / -1 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

How to create yii2 extension and push to github and register into packagist to allow end user install from composer

Created 2 years ago by Scott_HuangHow-tos1 comment – viewed 13,762 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.

Integrating FirePHP

Created 6 years ago by ricardogranaTutorials5 comments – viewed 13,752 times – ( +8 / -1 ) – version 1.1
Install Firebug plugin for Firefox from here.

i18n for your model in just 1 line

Created 7 years ago by mintaoTutorials0 comments – viewed 13,730 times – ( +12 / -1 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n