Wiki

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

Como trasponer una lista creada con CHtml::checkBoxList

Created 4 years ago by rdjteamTips3 comments – viewed 12,084 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:

CGridView Date Range Without Cookies or Session (External Filtering)

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 11,993 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,933 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.

Install specific Yii2 vendor extension & dependency without updating other packages.

Created 2 years ago by Kartik VTips0 comments – viewed 11,848 times – ( +40 / -6 ) – version 2.0
The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?

Limit a CGridView field to some preset length.

Created 3 years ago by le_topHow-tos1 comment – viewed 11,833 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.

Using sub query for doubletts

Created 4 years ago by mbTips3 comments – viewed 11,801 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.

ChromePHP for Yii

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

How to catch and log MySQL deadlock errors

Created 4 years ago by sebTips1 comment – viewed 11,685 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,681 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,680 times – ( +1 / -3 ) – version 1.1
Hello Yii friends