Wiki

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

How to catch and log MySQL deadlock errors

Created 4 years ago by sebTips1 comment – viewed 11,293 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

How to display data from two tables in TbGridView using DataProvider?

Created about a year ago by Rohit SutharTutorials4 comments – viewed 11,289 times – ( +6 / -1 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

Display Status image on CGridView column

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

Yii code completion and calltips in Komodo Edit

Created 5 years ago by viterTips1 comment – viewed 11,247 times – ( +6 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

Using sub query for doubletts

Created 3 years ago by mbTips3 comments – viewed 11,243 times – ( +1 ) – 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.

Display image on CGridView column and open a fancy-box

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

checkBox in CGridview

Created about a year ago by n-rOthers0 comments – viewed 11,214 times – ( +1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 2 years ago by Ankit ModiTutorials2 comments – viewed 11,107 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Simple way to implement Dynamic Tabular Inputs

Created about a year ago by ezekielnoobTutorials5 comments – viewed 11,065 times – ( +4 ) – version all

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,029 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null