Wiki

Articles in category "how-tos", sorted by ratingX
Displaying 191-200 of 309 result(s).

How to limit number of guest page views

Created 6 months ago by PeRoChAkHow-tos1 comment – viewed 2,763 times – ( +3 ) – version 1.1
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this.

Displaying, Sorting and Filtering Model Relations on a GridView

Created 4 months ago by Antonio RamirezHow-tos0 comments – viewed 4,167 times – ( +3 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

Localized version of CFormatter

Created about a year ago by marcovtwoutHow-tos2 comments – viewed 3,547 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Check online users / set specific user offline

Created 4 months ago by KonApazHow-tos0 comments – viewed 1,802 times – ( +3 ) – version 1.1
How to check the online users or how to logout a specific user from your admin panel? This wiki shows how to do that

Handling recursive deletion in Yii

Created about a year ago by JamesBarnsleyHow-tos3 comments – viewed 6,761 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.

Yii2 and Pdf files with Mpdf

Created 4 months ago by CTalaHow-tos0 comments – viewed 1,982 times – ( +3 ) – version 2.0
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.

Creating a Dependent Dropdown From Scratch in Yii2

Created 2 months ago by ThePr0f3550rHow-tos1 comment – viewed 3,432 times – ( +3 ) – version 2.0
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I cant implementation in Yii2 because Yii2 not built-in AJAX functionality hem.. I am search about it and get this statement

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

Created about a year ago by br0skHow-tos9 comments – viewed 12,395 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 about a year ago by JorgeeHow-tos1 comment – viewed 5,624 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 about a year ago by le_topHow-tos1 comment – viewed 5,371 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.