Wiki

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

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

Created 4 years ago by Xgamer99Tips3 comments – viewed 14,260 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,224 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 14,160 times – ( +1 / -4 ) – version 1.1
Hello Yii friends

AutoTimestampBehavior

Created 8 years ago by jonahTutorials1 comment – viewed 14,067 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 14,051 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

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 14,025 times – ( +5 / -1 ) – version 2.0
1. Create Extension in yii2.

Model validation for field ranges using yii2-field-range extension

Created 3 years ago by Kartik VTips0 comments – viewed 13,876 times – ( +39 / -1 ) – version 2.0
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

Facebook DeAuthorize callback URL and its response data.

Created 4 years ago by sirin kTutorials1 comment – viewed 13,866 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,863 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

Debuging variables in Yii2

Created 2 years ago by johonunuTips3 comments – viewed 13,841 times – ( +2 / -2 ) – version 2.0
This tutorial is explained following "basic" application structure.