Wiki

Sorted by viewsX
Displaying 311-320 of 600 result(s).

A simple action for XUpload extension

Created 2 years ago by tydeas_drTips1 comment – viewed 12,066 times – ( +3 ) – version 1.1
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

Auto set model fields values

Created about a year ago by vibhaJadwaniTutorials3 comments – viewed 11,980 times – ( +8 ) – version 1.1
This is a tutorial for how to auto set model values without any code.

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 5 months ago by Gerhard LiebenbergHow-tos1 comment – viewed 11,951 times – ( +3 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Customizing Yii's formatting rules (extending CFormatter)

Created 2 years ago by HaenselTips0 comments – viewed 11,914 times – ( +14 ) – version 1.1
CFormatter is one of Yii's core components and used to format values displayed in widgets like CGridView or CDetailView. All classic formats like numbers, text, urls or datetime are supported but you may have to use a formatting rule that isn't built in. Let's say we want to display arrays of strings (like tags associated with a product model). When using CDetailView we would usually make use of PHPs implode function to create a simple string value of all values in the $product->tags array.

Hyphenation of routes in URL management

Created about a year ago by qiangHow-tos6 comments – viewed 11,887 times – ( +17 ) – version 1.1
In this article, we introduce an approach that allows automatic hyphenation of the route part in URLs.
tags: URL

Extending CActiveForm for some form display fixes and language tweaks

Created 3 years ago by TrejderTips0 comments – viewed 11,728 times – ( +5 ) – version 1.1
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.

Auto TDD - How to auto-run PHPUnit

Created 3 years ago by imeheszTips3 comments – viewed 11,656 times – ( +3 / -1 ) – version 1.1
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

A simple class to use a different db for a module

Created 2 years ago by tydeas_drTips2 comments – viewed 11,616 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

Impersonate Users within Yii Framework

Created 3 years ago by WoilTutorials5 comments – viewed 11,590 times – ( +22 ) – 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".

How to log context information to logger (session id, user, ...)

Created 4 years ago by olafureTutorials0 comments – viewed 11,408 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging