Wiki

Articles in category "tips", sorted by viewsX
Displaying 91-100 of 122 result(s).

Yii shorten common functions with OOP style

Created about a year ago by pdtkameTips3 comments – viewed 5,236 times – ( +9 / -14 ) – version 1.1
This article will show how you can use Yii common functions as shorten OOP function. These functions will help you work with Yii common functions is easier as OOP style.

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

Created about a year ago by Rodrigo CoelhoTips0 comments – viewed 5,071 times – ( +1 ) – version 1.1
You can find the english version of this wiki here: The complete beginner's study guide for the Yii Framework.

关于Yii CHttpSession性能优化篇之源码流程分析

Created 2 years ago by Darwin WenTips0 comments – viewed 5,052 times – ( +1 / -1 ) – version 1.1
当我们使用Yii数据库去保存Session时,只要简单的配置就可以完成这个功能,在进行性能优化这个主题之前,我们先来查看一下CHttpSession和CDBHttpSession源代码,探讨CHttpSession和CDBHttpSession的流程再进行深一步优化主题。

Fixing extensions without modifying their code

Created about a year ago by schmunkTips3 comments – viewed 4,933 times – ( +6 ) – version 1.1
If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

CjuiDatepicker

Created about a year ago by hiral darjiTips1 comment – viewed 4,885 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

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

Created about a year ago by sirin kTips0 comments – viewed 4,808 times – ( +2 ) – version 1.1
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.

using jqbargraph to create beautiful graphs

Created about a year ago by MAHESH.E.UTips1 comment – viewed 4,745 times – ( +5 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

Access log output from unit tests

Created about a year ago by MikeTips2 comments – viewed 4,699 times – ( +4 ) – version 1.1
Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

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

Created about a year ago by sirin kTips0 comments – viewed 4,509 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

Setting static modules' properties in config

Created about a year ago by Alexander PalamarchukTips0 comments – viewed 4,504 times – ( +2 / -2 ) – version 1.1
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