Wiki

Sorted by viewsX
Displaying 351-360 of 733 result(s).

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 2 years ago by skwordenHow-tos4 comments – viewed 14,117 times – ( +4 / -1 ) – version 1.1
I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

ACL and RBAC

Created 2 years ago by zeroByteHow-tos0 comments – viewed 14,047 times – version 1.1
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Extending CActiveForm for some form display fixes and language tweaks

Created 4 years ago by TrejderTips0 comments – viewed 13,996 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.

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 13,954 times – ( +5 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Customizing Yii's formatting rules (extending CFormatter)

Created 3 years ago by HaenselTips0 comments – viewed 13,859 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.

Displaying, Sorting and Filtering Model Relations on a GridView

Created 10 months ago by Antonio RamirezHow-tos4 comments – viewed 13,785 times – ( +13 ) – 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.

How-To: Create Token Authenticated Web Services

Created about a year ago by hemcHow-tos1 comment – viewed 13,753 times – ( +8 ) – version 1.1
This article is about implementing authentication to Yii based web services.

multiple CActiveDataProviders in one CGridView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 13,714 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

A simple class to use a different db for a module

Created 3 years ago by tydeas_drTips2 comments – viewed 13,681 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?