Wiki

Sorted by viewsX
Displaying 521-530 of 786 result(s).

How to create Module based Login

Created 3 years ago by Ibrar TuriHow-tos1 comment – viewed 13,810 times – ( +3 / -1 ) – version 1.1
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 13,629 times – ( +13 / -1 ) – 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.

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 13,520 times – ( +2 / -1 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,506 times – ( +28 / -1 ) – version 1.1
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

Display Status image on CGridView column

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

Encapsulate db and module configurations

Created 8 years ago by ricardogranaTutorials3 comments – viewed 13,420 times – ( +7 / -1 ) – 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

Automatic Parameter Binding to POST vars in Yii2

Created 4 years ago by aarondfrancisHow-tos2 comments – viewed 13,361 times – ( -1 ) – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

YII2 : simple language Switcher Widget

Created 2 years ago by phunsanitTutorials0 comments – viewed 13,325 times – ( +1 / -1 ) – version 2.0
ภาษาไทย YII 2 Widget เปลี่ยนภาษา

caching controllers with filters()

Created 6 years ago by RusAlexHow-tos1 comment – viewed 13,305 times – ( +2 / -1 ) – 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

Como trasponer una lista creada con CHtml::checkBoxList

Created 6 years ago by rdjteamTips3 comments – viewed 13,266 times – ( +2 / -1 ) – 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: