Wiki

Sorted by viewsX
Displaying 431-440 of 786 result(s).

CSV Export

Created 5 years ago by JohnPollardHow-tos5 comments – viewed 18,363 times – ( +4 / -1 ) – version 1.1
I needed a csv export function for my cgridview and I wanted to export the entire result set of the sorted and filtered cgridview the user was viewing via ajax.
tags: csv, export

Upload CSV File

Created 4 years ago by bhavesh vaghelaTutorials2 comments – viewed 18,326 times – ( +8 / -1 ) – version 1.1
View file

BUM - Add Additional Info to a User

Created 4 years ago by fireflyHow-tos1 comment – viewed 18,308 times – ( +1 / -1 ) – version 1.1
How to add additional information to a user when using BUM extension?

PHP built-in server integration

Created 2 years ago by HeadshakerHow-tos1 comment – viewed 18,290 times – ( -1 ) – version 2.0
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)

Generate a multi-lever array sub-category for a menu

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 18,270 times – ( +10 / -1 ) – version 1.1
Everyone have seen a multilayer menu in several CMS

TDD with PHPUnit_Story and Yii

Created 6 years ago by sidewinderTutorials1 comment – viewed 18,226 times – ( +7 / -1 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 6 years ago by a110yTips7 comments – viewed 18,199 times – ( +2 / -1 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Simple Mail Queue

Created 4 years ago by waterloomattTutorials3 comments – viewed 18,124 times – ( +10 / -3 ) – version 1.1
This tutorial shows how to create a simple mail queue. It is usually run from a cron job but can be run from the command line too.

Impersonate Users within Yii Framework

Created 6 years ago by WoilTutorials6 comments – viewed 17,972 times – ( +22 / -1 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Add model validator in Controller

Created 3 years ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 17,951 times – ( +1 / -2 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way