Wiki

Sorted by ratingX
Displaying 331-340 of 469 result(s).

A simple action for XUpload extension

Created 2 years ago by tydeas_drTips1 comment – viewed 9,725 times – ( +3 )
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Upload CSV File

Created 4 months ago by bhavesh vaghelaTutorials0 comments – viewed 4,020 times – ( +3 )
View file

Patching PHP code (used as a library) without changing the original code!

Created 2 months ago by le_topTips0 comments – viewed 1,748 times – ( +3 )
The article Fixing extensions without modifying their code reminded me of another patching technique that I used. My conviction and a hard look on the web had led me to an article Redefine PHP class methods or class giving me a head start to do what I wanted: patching third party code without touching the original to allow easy upgrades.
tags: patch, patching

Adding a link to a CDataColumn

Created 2 months ago by le_topTips4 comments – viewed 2,692 times – ( +3 )
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

How to use the official Yii installer for Composer

Created about a month ago by br0skHow-tos3 comments – viewed 3,161 times – ( +3 )
This way of using Composer is different from the Phundament 3 based wiki in that it is using the new official Composer installer for Yii. It is also only making use of Packagist not the packages at packages.phundament.com. This wiki doesn't aim to replace the Phundament 3 based wiki it is just another way of doing it and I really like the fact that it can use Packagist directly and not a separate repository.

How to change Migration Table name and use defined prefix.

Created about a month ago by JorgeeHow-tos0 comments – viewed 1,282 times – ( +3 )
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.

Alternative folder structure for a standard Yii app

Created about a month ago by TrejderHow-tos4 comments – viewed 2,281 times – ( +3 )
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Client-side form validation using Twitter Bootstrap's Popovers

Created 28 days ago by TrejderHow-tos0 comments – viewed 7,034 times – ( +3 )
This article explains how to easily turn standard text-line validation errors into beautifully and professionally looking Twitter Bootstrap's Popovers.

defaultScope

Created 25 days ago by Gerhard LiebenbergHow-tos4 comments – viewed 1,875 times – ( +3 )
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Configuring CWebLogRoute for DB profiling

Created about a year ago by Igor IvanovicTutorials1 comment – viewed 9,158 times – ( +3 )
/index.php /protected/config/main.php
tags: logger, profiler, db