Wiki

Articles in category "tips", sorted by commentsX
Displaying 71-80 of 97 result(s).

Understanding series articles

Created about a year ago by GOshaTips0 comments – viewed 6,211 times – ( +16 )
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

How to catch and log MySQL deadlock errors

Created about a year ago by sebTips0 comments – viewed 5,562 times – ( +4 )
This method allows to log InnoDB monitor output when deadlock error occured. This way we will have much more useful data to find and fix deadlock.
tags: database

Reading the doc

Created 2 years ago by zaccariaTips0 comments – viewed 5,261 times – ( +21 )
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Extending CActiveForm for some form display fixes and language tweaks

Created 2 years ago by TrejderTips0 comments – viewed 8,473 times – ( +5 )
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.

Yii behind a reverse proxy, SSL support and correct IP logging

Created 9 months ago by mrkmgTips0 comments – viewed 2,621 times
If you are hosting Yii behind a reverse proxy, for example nginx, and you are having issues with your logs showing the proxies IP, or the urls being created arn't being created for SSL because your SSL certs are located on your reverse proxy instead of the Yii server, this code may be able to help you. I placed them in the very top of Yii's entry script, index.php

Custom Archive in Blog system

Created 9 months ago by nirmalrokaTips0 comments – viewed 2,249 times – ( +1 )
Hi I had made simple archive system for blog system that can handle tbl_post. I had used simple CDbCriteria not more than that. I know there is more and many better way to this but I think this will give some idea to users to generate new idea or customized or modified this version of code.

ChromePHP for Yii

Created 2 years ago by imeheszTips0 comments – viewed 7,210 times – ( +2 / -1 )
ChromePHP is a console logging extension for Google Chrome.

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

Created 8 months ago by sirin kTips0 comments – viewed 2,719 times – ( +4 )
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

Extending common classes to allow better customization

Created 2 years ago by Steve FriedlTips0 comments – viewed 13,960 times – ( +38 )
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

Solution for session lose of Facebook iframe application in Internet Explorer .

Created 8 months ago by sirin kTips0 comments – viewed 2,854 times – ( +2 )
Facebook iframe app’s session is losing in Internet Explorer when doing a second redirection inside the facebook iframe app.The main reason is ,by default IE wont allow cookies in its priavacy settings If cookies not available means session is also not available for our Facebook iframe app in IE.