Wiki

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

How to use BootstrapInterface

Created about a year ago by Antonio RamirezHow-tos0 comments – viewed 3,926 times – ( +3 ) – version 2.0
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on your Application bootstrap process.

Open bootstrap modal and load content via Ajax

Created about a year ago by JbalTeroHow-tos1 comment – viewed 27,221 times – ( +3 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.

Localized version of CFormatter

Created 2 years ago by marcovtwoutHow-tos2 comments – viewed 4,340 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 8,090 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,840 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 23,127 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,592 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,602 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,865 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 about a year ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 9,244 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.