Wiki

Articles in category "tips", sorted by commentsX
Displaying 81-90 of 103 result(s).

ChromePHP for Yii

Created 2 years ago by imeheszTips0 comments – viewed 7,394 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 9 months ago by sirin kTips0 comments – viewed 2,891 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 14,460 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 9 months ago by sirin kTips0 comments – viewed 3,027 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.

An important tip when you are using CArrayDataProvider.

Created 9 months ago by sirin kTips0 comments – viewed 3,942 times – ( +5 / -1 )
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

[pt-br] O guia de estudos do Yii para iniciantes

Created 8 months ago by Rodrigo CoelhoTips0 comments – viewed 3,022 times – ( +1 )
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

Setting static modules' properties in config

Created 8 months ago by Alexander PalamarchukTips0 comments – viewed 2,920 times – ( +2 / -2 )
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
tags: config, module

Speedup unit tests by moving MySql data to memory (in Ubuntu)

Created 6 months ago by sebTips0 comments – viewed 3,014 times – ( +1 / -1 )
Speedup unit tests by moving MySql data to memory [Ubuntu]
tags: mysql, unit test

Assigning dynamic roles to a user Using yii Rights module at the time of user creation and using some special advanced features of yii rights

Created 4 months ago by Rajith RTips0 comments – viewed 6,511 times – ( +6 )
After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation .

PHPStorm & NetBeans autocomplete problem

Created 3 months ago by StagelineTips0 comments – viewed 3,385 times – ( +16 )
The problem: If you type Yii::app()->user<ctrl+space> code completion didn't work. This solve it.