Sorted by date (updated)X
Displaying 171-180 of 777 result(s).

Insert a multirow header in CGridView

Updated about a year ago by PeppeHow-tos2 comments – viewed 14,666 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Enhance security of cookie-based login

Updated about a year ago by darkheirHow-tos0 comments – viewed 6,935 times – ( +2 ) – version 1.1
Enhance security of cookie-based login

multiple CActiveDataProviders in one CGridView

Updated about a year ago by NashiHow-tos7 comments – viewed 19,660 times – ( +8 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Multiple Database Connection : Select database based on login user id, Dynamic

Updated about a year ago by parthshahHow-tos4 comments – viewed 24,162 times – ( +9 / -6 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Role Management

Updated 2 years ago by Dency G BHow-tos0 comments – viewed 9,294 times – ( +3 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

Two Login in same form in Yii application , with two tables

Updated 2 years ago by Rohit SutharTutorials6 comments – viewed 20,006 times – ( +4 / -7 ) – version 1.1
login links will be

Using updateAll and deleteAll with scopes

Updated 2 years ago by le_topHow-tos4 comments – viewed 22,609 times – ( +5 ) – version 1.1
Using CActiveRecord->updateAll() and CActiveRecord->deleteAll() with scopes and criteria requires some tricks that are explained in this article. While findAll() , find() and some other methods use scopes automatically, updateAll() and deleteAll() do not.

Custom column in TbGridView with icon by condition, find out icon class glyphicons easy (YiiBooster)

Updated 2 years ago by Rohit SutharTips2 comments – viewed 25,951 times – ( +2 / -1 ) – version 1.1
First of all, You have to find out the class of the desired icon, so visit the

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Updated 2 years ago by tophHow-tos2 comments – viewed 30,706 times – ( +1 / -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

using multiple radio button

Updated 2 years ago by Rohit SutharTips4 comments – viewed 45,519 times – ( +9 / -1 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().