Wiki

Sorted by viewsX
Displaying 501-510 of 774 result(s).

CGridView Date Range Without Cookies or Session (External Filtering)

Created 2 years ago by ezekielnoobHow-tos6 comments – viewed 11,864 times – ( +5 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 4 years ago by c@cbaHow-tos3 comments – viewed 11,863 times – ( +9 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Update related models of a model using listBox and checkBoxList in the form

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 11,858 times – ( +2 ) – version 1.1
Suppose you want to have a list in Category with its related products and you want to updates the list (removing or insert product items) This wiki show us how to do that

Limit a CGridView field to some preset length.

Created 3 years ago by le_topHow-tos1 comment – viewed 11,686 times – ( +13 ) – version 1.1
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

ChromePHP for Yii

Created 5 years ago by imeheszTips0 comments – viewed 11,672 times – ( +3 / -2 ) – version 1.1
ChromePHP is a console logging extension for Google Chrome.

Using sub query for doubletts

Created 3 years ago by mbTips3 comments – viewed 11,617 times – ( +2 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

How to catch and log MySQL deadlock errors

Created 4 years ago by sebTips1 comment – viewed 11,587 times – ( +4 ) – version 1.1
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

Display Status image on CGridView column

Created 3 years ago by Ankit ModiTutorials1 comment – viewed 11,573 times – ( +2 / -1 ) – version all
How to display status image on admin gridview.

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 11,483 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

Display image on CGridView column and open a fancy-box

Created 2 years ago by Ankit ModiTutorials0 comments – viewed 11,480 times – ( +1 / -1 )
1) Add a fancy-box extension on admin page