Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 211-220 of 342 result(s).

Localized version of CFormatter

Created 2 years ago by marcovtwoutHow-tos2 comments – viewed 4,301 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Handling recursive deletion in Yii

Created 2 years ago by JamesBarnsleyHow-tos3 comments – viewed 7,981 times – ( +3 ) – version 1.1
As a lead developer at Mutable Labs I was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

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

Created about a year ago by thiagoc7How-tos2 comments – viewed 7,428 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 2 years ago by br0skHow-tos9 comments – viewed 21,470 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 2 years ago by JorgeeHow-tos1 comment – viewed 7,433 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 2 years ago by le_topHow-tos1 comment – viewed 7,434 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Yii HMVC

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

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 2 months ago by Wade ShulerHow-tos1 comment – viewed 8,506 times – ( +5 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

Remove Byte Order Mark (BOM) from files recursively

Created about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 8,881 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.

Caching strategy

Created about a year ago by darkheirHow-tos9 comments – viewed 5,194 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