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 14,048 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,906 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.

YII2 : simple language Switcher Widget

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

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 13,848 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)

Automatic Parameter Binding to POST vars in Yii2

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

Display Status image on CGridView column

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

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,662 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

Encapsulate db and module configurations

Created 8 years ago by ricardogranaTutorials3 comments – viewed 13,596 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

Rendering a view file in a console application

Created 6 years ago by TompiHow-tos1 comment – viewed 13,506 times – ( +4 / -3 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

Como trasponer una lista creada con CHtml::checkBoxList

Created 6 years ago by rdjteamTips3 comments – viewed 13,438 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: