Wiki

Sorted by viewsX
Displaying 561-570 of 782 result(s).

关于Yii CHttpSession性能优化篇之源码流程分析

Created 5 years ago by Darwin WenTips0 comments – viewed 10,236 times – ( +1 / -1 ) – version 1.1
当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

Shrink Yii, help your IDE and speed up copying

Created 5 years ago by dckurushinTips4 comments – viewed 10,212 times – ( +10 / -9 ) – version 1.1
In this little tip, I will help you to cut Yii size for about half

How to make use of a fragment cache

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

View a related field in CGridView

Created 2 years ago by rafaelt88Tips1 comment – viewed 10,111 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Managing a star rating with the StarRating widget in Yii 2

Created 2 years ago by Kartik VHow-tos4 comments – viewed 10,101 times – ( +38 / -5 ) – version 2.0
In Yii 1.x, there was a built in widget CStarRating based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.

Using the jamselect widget with min and max values

Created 6 years ago by got 2 doodleHow-tos0 comments – viewed 10,056 times – ( +2 ) – 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 recaptchlib in your projects

Created 6 years ago by Antonio RamirezHow-tos2 comments – viewed 10,044 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

Installation guide: Yii-2 advanced template with RBAC system

Created 3 months ago by Sherin JoseTutorials0 comments – viewed 10,009 times – ( +10 ) – version 2.0
Welcome, all of you !
tags: install, yii2, rbac

Role Management

Created 2 years ago by Dency G BHow-tos0 comments – viewed 9,987 times – ( +3 ) – version 2.0
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
tags: rbac, yii2

How to change Migration Table name and use defined prefix.

Created 3 years ago by JorgeeHow-tos1 comment – viewed 9,957 times – ( +3 ) – 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.