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,954 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,789 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,691 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)

YII2 : simple language Switcher Widget

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

Display Status image on CGridView column

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

Automatic Parameter Binding to POST vars in Yii2

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

URL component access functions

Created 6 years ago by Steve FriedlTips1 comment – viewed 13,589 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,535 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 5 years ago by TompiHow-tos1 comment – viewed 13,392 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.

caching controllers with filters()

Created 6 years ago by RusAlexHow-tos1 comment – viewed 13,369 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