Wiki

Sorted by viewsX
Displaying 511-520 of 777 result(s).

How to catch and log MySQL deadlock errors

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

Yii 1.1: How To add id or class to CMenu items ?

Created 2 years ago by Louis GacHow-tos0 comments – viewed 11,722 times – ( +2 ) – version 1.1
CMenu comes with a lot of great customization options built in. One of the most used is the class 'active' being added to menu item. But, what if you want to add your own class or id to a menu item ?

Display image on CGridView column and open a fancy-box

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

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

Created about a year ago by Scott_HuangTips0 comments – viewed 11,693 times – ( +3 / -3 ) – version 2.0
First of all, install yii2 basic template according below link:

Bootstrap Yii cGridView add popup button

Created 2 years ago by Arockia JohnsonHow-tos6 comments – viewed 11,649 times – ( +4 ) – version 1.1
Hi,

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

Created 2 years ago by Kartik VTips0 comments – viewed 11,520 times – ( +39 ) – 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.

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

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

Yii code completion and calltips in Komodo Edit

Created 5 years ago by viterTips1 comment – viewed 11,492 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

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,380 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

How to customize error handling in console-mode applications

Created 5 years ago by Steve FriedlHow-tos1 comment – viewed 11,328 times – ( +3 ) – version 1.1
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.