Sorted by viewsX
Displaying 361-370 of 747 result(s).

multiple CActiveDataProviders in one CGridView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 14,599 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?

How to display Dependent drop-down value using ajax call with dynamically

Created 9 months ago by Ankit ModiTutorials4 comments – viewed 14,592 times – ( +2 / -2 ) – version all
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.


Created 2 years ago by zeroByteHow-tos0 comments – viewed 14,529 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.

Implementing a WebDAV server using SabreDAV

Created 2 years ago by nineinchnickTutorials6 comments – viewed 14,422 times – ( +5 )
This article will show you how to easily implement a WebDAV server in your project using SabreDAV.

Extending CActiveForm for some form display fixes and language tweaks

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

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 14,320 times – ( +7 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to timezones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "timezone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical timezones and daylight saving times.

Customizing Yii's formatting rules (extending CFormatter)

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

A simple class to use a different db for a module

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

A simple action for XUpload extension

Created 4 years ago by tydeas_drTips1 comment – viewed 13,814 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