Wiki

Sorted by date (updated)X
Displaying 291-300 of 747 result(s).

CSqlDataProvider in CGridView

Updated about a year ago by CeBeTutorials8 comments – viewed 12,131 times – ( +7 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

Making a CGridView to keep the selection between page changes

Updated about a year ago by CeBeTutorials0 comments – viewed 3,667 times – ( +1 / -1 ) – version 1.1
You may find this usefull when you discover your CGridView lost the selection after an update or after a page change, nicely i have build a new extension to cover this problem in a very easy way.

Safely checking if a model class exists (without exploding)

Updated about a year ago by CeBeHow-tos0 comments – viewed 4,777 times – ( +1 ) – version 1.1
While rewriting the PcReportContent extension I'm maintaining I've bumped to a challenge. This wiki was born out of it.

How to Enhance a CGridView

Updated about a year ago by CeBeHow-tos5 comments – viewed 3,763 times – ( +4 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

Select2 Infinite Scroll With Remote Data in Yii

Updated about a year ago by CeBeHow-tos5 comments – viewed 6,021 times – ( +4 ) – version 1.1
I was able to set up the infinite scroll of select2 in Yii. I am glad to share it with you. The demo and source code can be found here. However, select2 for Yii can be found here which uses a widget.

Localized version of CFormatter

Updated about a year ago by marcovtwoutHow-tos2 comments – viewed 4,112 times – ( +3 ) – version 1.1
Since Yii 1.1.14, a CLocalizedFormatter is available.

Using CJuiDatePicker for CGridView filter

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos14 comments – viewed 38,515 times – ( +24 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Installing Yii Users and Rights to Newly Created Yii app

Updated about a year ago by Rajith RTutorials25 comments – viewed 67,498 times – ( +23 / -10 ) – 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 year ago by BoazHow-tos7 comments – viewed 6,016 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 year ago by Anas AbuDayahTutorials5 comments – viewed 28,913 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac