Wiki

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

caching controllers with filters()

Created 6 years ago by RusAlexHow-tos1 comment – viewed 12,902 times – ( +2 ) – version 1.1
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Debuging variables in Yii2

Created 2 years ago by johonunuTips3 comments – viewed 12,900 times – ( +2 / -1 ) – version 2.0
This tutorial is explained following "basic" application structure.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 12,861 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 CListView to display items next to each other (in columns)

Created 3 years ago by thyseusTips4 comments – viewed 12,857 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:

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 12,839 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

Como trasponer una lista creada con CHtml::checkBoxList

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

How to get & store Last Login DateTime in database?

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 12,777 times – ( +7 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

Ordering Models by Weight with CJuiSortable

Created 7 years ago by Matt KelliherTutorials2 comments – viewed 12,776 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

Display Status image on CGridView column

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

Advanced CTabView using CClipWidget

Created 8 years ago by krillzipTutorials1 comment – viewed 12,672 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.