Wiki

Sorted by viewsX
Displaying 571-580 of 785 result(s).

Check users online, user last activity, user last ip

Created 3 years ago by frazelliHow-tos5 comments – viewed 11,231 times – ( +5 / -1 ) – version 1.1
DbHttpSession

CGridView keep focus on the control after filtering

Created 5 years ago by jayalaHow-tos4 comments – viewed 11,194 times – ( +6 / -1 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Profiling using XDebug

Created 4 years ago by le_topHow-tos1 comment – viewed 11,194 times – ( +3 / -1 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

model rules depended by user roles-permissions

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 11,129 times – ( +3 / -1 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

How to change Migration Table name and use defined prefix.

Created 4 years ago by JorgeeHow-tos1 comment – viewed 11,034 times – ( +3 / -1 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Using your own forked version of extensions with composer

Created 3 years ago by Kartik VTutorials3 comments – viewed 11,019 times – ( +39 / -5 ) – version 2.0
So you want to use a fork of any existing vendor extension with your Yii 2 install and use the fork, instead of original source. This does not need you to push any update or register your package on packagist.org. You are recommended to follow the approach below:

Preventing CJuiTabs from hiding drop-down CMenu items

Created 6 years ago by Steve FriedlTips1 comment – viewed 11,005 times – ( +4 / -1 ) – version 1.1
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

How to make use of a fragment cache

Created 8 years ago by dalipTutorials0 comments – viewed 10,948 times – ( +1 / -1 ) – version 1.1
According to the manual http://jp.php.net/manual/en/memcache.installation.php;
tags: cache, memcache

Using the jamselect widget with min and max values

Created 6 years ago by got 2 doodleHow-tos0 comments – viewed 10,855 times – ( +2 / -1 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

Using phpseclib with Yii

Created 4 years ago by nkdHow-tos8 comments – viewed 10,806 times – ( +2 / -1 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security