Wiki

Sorted by ratingX
Displaying 321-330 of 467 result(s).

How to customize error handling in console-mode applications

Created 2 years ago by Steve FriedlHow-tos1 comment – viewed 5,596 times – ( +3 )
One can control the detail of a web application in the webroot/index.php file by manipulating the values of YII_DEBUG and YII_TRACE_LEVEL, but these don't appear to be used by console applications. This is because although the base CApplication class defines a displayError() method that does consider these variable, CConsoleApplication overrides it with a function that doesn't honor them.

Create Yii Project In Cloud9

Created 8 months ago by BenTutorials5 comments – viewed 7,618 times – ( +3 )
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

Facebook DeAuthorize callback URL and its response data.

Created 8 months ago by sirin kTutorials1 comment – viewed 3,284 times – ( +3 )
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

Auto TDD - How to auto-run PHPUnit

Created 2 years ago by imeheszTips3 comments – viewed 9,106 times – ( +3 )
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

Localized version of CFormatter

Created 6 months ago by marcovtwoutHow-tos2 comments – viewed 1,868 times – ( +3 )
The default CFormatter (accessible through Yii::app()->format) is not locale aware, unfortunately. Until it is, here is a quick and easy way to localize it, by extending the default class.

How to use Smarty renderer in Yii

Created 2 years ago by dongbetaHow-tos2 comments – viewed 11,192 times – ( +3 )
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

Handling recursive deletion in Yii

Created 5 months ago by JamesBarnsleyHow-tos3 comments – viewed 3,378 times – ( +3 )
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.

A simple action for XUpload extension

Created 2 years ago by tydeas_drTips1 comment – viewed 9,701 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 3,969 times – ( +3 )
View file