Wiki

Articles in category "tips", sorted by viewsX
Displaying 71-80 of 149 result(s).

Using CListView to display items next to each other (in columns)

Created 2 years ago by thyseusTips4 comments – viewed 10,934 times – ( +11 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

ChromePHP for Yii

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

Como trasponer una lista creada con CHtml::checkBoxList

Created 3 years ago by rdjteamTips3 comments – viewed 10,616 times – ( +2 ) – version 1.1
En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

Yii code completion and calltips in Komodo Edit

Created 4 years ago by viterTips1 comment – viewed 10,571 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

PHPStorm & NetBeans autocomplete problem

Created 2 years ago by StagelineTips3 comments – viewed 10,288 times – ( +24 ) – version 1.1
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.

New Relic Error Alert with Yii

Created 2 years ago by simon604Tips2 comments – viewed 10,267 times – ( +6 ) – version 1.1
Introduction

Getting nulls from database instead of empty strings

Created 4 years ago by samdarkTips2 comments – viewed 10,241 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

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 2 years ago by sebTips0 comments – viewed 10,198 times – ( +1 / -1 ) – version 1.1
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

How to catch and log MySQL deadlock errors

Created 3 years ago by sebTips1 comment – viewed 10,014 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

FORM with GET method causes repeated stacking of URL Parameters

Created about a year ago by Kartik VTips2 comments – viewed 9,905 times – ( +39 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below: