Wiki

Sorted by date (updated)X
Displaying 61-70 of 599 result(s).

Localized version of CFormatter

Updated 26 days ago by marcovtwoutHow-tos2 comments – viewed 3,090 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Using CJuiDatePicker for CGridView filter

Updated 27 days ago by KonApazHow-tos12 comments – viewed 27,583 times – ( +19 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Installing Yii Users and Rights to Newly Created Yii app

Updated 27 days ago by Rajith RTutorials25 comments – viewed 45,073 times – ( +17 / -2 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

Syncing sessions between Yii and KCFinder

Updated about a month ago by BoazHow-tos7 comments – viewed 4,185 times – ( +1 ) – version 1.1
Info: As KCFinder's documentation mentions, if your application (Yii in our case) session handling is using the PHP environment configuration - meaning no change in session handling at all, then no change is needed also on KCFinder side to be able to use this session and thus have this simple interface between your Yii webapp and KCFinder. If that's your case then you probably need not read the rest of this article but rather just make sure that before a user attempts to upload or browse your server a session variable is already set for him (or her) with his specific configuration already waiting for KCFinder there. What can this session interface be useful for? For example, for having per-user upload directory. You could have uploadURL variable established in the session variable to contain the user's id. When an upload or browse use case will occur, the client side will trigger the KCFinder completely decoupled from the Yii application. Yet, since you've already synced your user-specific-configuration with KCFinder via the session, KCFinder will pick it up and use it.
tags: File upload

Add information to Yii::app()->user by extending CWebUser (better version)

Updated about a month ago by Anas AbuDayahTutorials4 comments – viewed 20,359 times – ( +5 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

Create thermometer using rgraph

Updated about a month ago by Ankit ModiTips2 comments – viewed 3,621 times – ( +3 )
Hi friends,

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

Updated about a month ago by jwernerHow-tos3 comments – viewed 6,937 times – ( +7 / -1 )
Most of the currently available functions/extensions/behaviors directly or indirectly use timestamps to perform "format" and "timezone" conversions. This creates problems for dates falling outside the timestamp range; and the two forms of conversions must often be done in separate processes. However, by using php's DateTime class (instead of timestamps), we can do both 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 daylight saving times and more importantly, historical changes in timezones and daylight saving times.

Implementing a User Level Access System

Updated 2 months ago by Phil LoaizaTutorials12 comments – viewed 37,187 times – ( +28 / -1 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

Configuring controller access rules to default-deny

Updated 3 months ago by nsandenHow-tos3 comments – viewed 50,129 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

1:n relations sometimes require CDbCriteria.together

Updated 3 months ago by fsbTips4 comments – viewed 22,135 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.