Wiki

Sorted by viewsX
Displaying 651-660 of 777 result(s).

Safely checking if a model class exists (without exploding)

Created 2 years ago by BoazHow-tos0 comments – viewed 7,104 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.

Enhance security of cookie-based login

Created 2 years ago by darkheirHow-tos0 comments – viewed 7,082 times – ( +2 ) – version 1.1
Enhance security of cookie-based login

Email by YiiMailer, Call Outlook, IMAP

Created 2 years ago by Scott_HuangHow-tos0 comments – viewed 7,046 times – version 1.1
In Yii community we have lots of extention can send emails, such as YiiMailer and Swift and so on, or even IMAPI, thanks for team contribution. However, sometimes, in the intranet enviroment, the program cannot run successfully since SMTP /IMAP port been banded. So you need to seek other ways. The most simple way is **call outlook** as COM.

How to apply a layout to an AJAX update

Created 2 years ago by trondHow-tos1 comment – viewed 7,040 times – ( +1 ) – version 1.1
The template system in Yii is quite flexible. By default you have three layers of content:
tags: AJAX, views

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

Created 4 years ago by sirin kTips0 comments – viewed 6,981 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

Making friends' configs, DB credentials and paths with version control

Created 3 years ago by Alexander PalamarchukTips1 comment – viewed 6,968 times – ( +2 / -1 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

ePay Integration - Bulgarian Payment Provider

Created 3 years ago by yasenTutorials2 comments – viewed 6,959 times – ( +8 ) – version 1.1
I. In the view script add the following hidden fields:

Make an ajax request to another server using JSONP

Created 2 years ago by Kostas Apazidis (KonApaz)Tips0 comments – viewed 6,895 times – ( +1 ) – version 1.1
There are cases that you want to make an ajax request to another server and get the results.

Simple Multiple Environment Setup with Default Yii Installation

Created 2 years ago by Ibrar TuriHow-tos2 comments – viewed 6,866 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.

Save uploaded file with any filename characters

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 6,829 times – ( +1 ) – version 1.1
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/