Wiki

Sorted by ratingX
Displaying 421-430 of 771 result(s).

Update a part of content using AJAX when select a GridView row

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 16,970 times – ( +4 ) – version 1.1
Suppose you want to refresh a form or any content when a single row of CGridView is selected

ClientValidation for files (modern browsers)

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,586 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?

HOW TO: Use token based authentication

Created 2 years ago by le_topHow-tos2 comments – viewed 15,749 times – ( +4 ) – version 1.1
After reading the other wiki article regarding token based access, I thought that it might be interesting to share my method.

Simple Multiple Environment Setup with Default Yii Installation

Created 2 years ago by Ibrar TuriHow-tos2 comments – viewed 6,590 times – ( +4 ) – version 1.1
After installing Yii basic application on our systems, most of the time we want to have multiple environment such as local, dev and live setup. Most of the times when we want to make changes to configuration file, we have to over-write configurations file for each environment.

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 3 years ago by sirin kTips0 comments – viewed 6,812 times – ( +4 ) – version 1.1
hello, This article is helpful only if you have the following situation: A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook's graph api to check whether the user is logged in or not.
tags: facebook, user

How to Enhance a CGridView

Created 2 years ago by bluyellHow-tos5 comments – viewed 5,145 times – ( +4 ) – version 1.1
by: Christian Salazar (bluyell, @salazachris74, christiansalazarh@gmail.com)

Select2 Infinite Scroll With Remote Data in Yii

Created 2 years ago by amanationHow-tos5 comments – viewed 9,705 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.

Preventing CJuiTabs from hiding drop-down CMenu items

Created 5 years ago by Steve FriedlTips1 comment – viewed 10,043 times – ( +4 ) – version 1.1
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

How to use Smarty renderer in Yii

Created 5 years ago by dongbetaHow-tos2 comments – viewed 18,864 times – ( +4 ) – version 1.1
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

Image resize on the fly

Created 3 years ago by TpoxaHow-tos4 comments – viewed 19,799 times – ( +4 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize