Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 221-230 of 355 result(s).

Book Has Author - Many to Many relations using Kartik\Select2

Created 2 years ago by thiagoc7How-tos2 comments – viewed 13,613 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 3 years ago by br0skHow-tos9 comments – viewed 38,986 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

How to change Migration Table name and use defined prefix.

Created 3 years ago by JorgeeHow-tos1 comment – viewed 10,120 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.

Profiling using XDebug

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

Role Management

Created 2 years ago by Dency G BHow-tos0 comments – viewed 10,286 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

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 2 years ago by SmitheshHow-tos1 comment – viewed 8,251 times – ( +3 ) – version 1.1
This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 11,357 times – ( +5 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

Yii HMVC

Created 3 years ago by ezekielnoobHow-tos6 comments – viewed 12,856 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

Remove Byte Order Mark (BOM) from files recursively

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 16,113 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.

Caching strategy

Created 3 years ago by darkheirHow-tos9 comments – viewed 6,667 times – ( +5 / -1 ) – version 1.1
Note: Before reading this wiki you should have read the caching part in the Yii guide
tags: caching, filter