Displaying 401-410 of 757 result(s).

An important tip when you are using CArrayDataProvider.

Created 3 years ago by sirin kTips0 comments – viewed 9,521 times – ( +8 / -1 ) – version 1.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 “ is not defined”.

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

Created 3 years ago by sirin kTips0 comments – viewed 6,942 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.

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,202 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

YouTube API v2.0 – Browser-based Uploading

Created 3 years ago by VaibhavHow-tos1 comment – viewed 12,906 times – ( +6 ) – version 1.1
Through the YouTube API you can upload files directly to the Youtube server. Youtube currently offers two services 1. Direct Link 2. Browser Based Uploading. In this wiki I will demonstrate how you can quickly set Browser Based Uploading for your Yii application. This is the protocol request that takes place.

YiiBoilerplate - Setup a professional project structure in seconds

Created 3 years ago by Antonio RamirezOthers53 comments – viewed 52,837 times – ( +48 ) – version 1.1
tags: directory, config

Create Yii Project In Cloud9

Created 3 years ago by BenTutorials5 comments – viewed 20,308 times – ( +3 ) – version 1.1
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 3 years ago by bluezedTutorials5 comments – viewed 25,419 times – ( +10 / -1 ) – version 1.1
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Entire Messages into javascript object

Created 3 years ago by markuxHow-tos0 comments – viewed 5,420 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

Custom Archive in Blog system

Created 3 years ago by nirmalrokaTips0 comments – viewed 4,891 times – ( +2 ) – version 1.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.

The MrFisk IRC Bot

Created 3 years ago by rAWTAZOthers0 comments – viewed 18,542 times – ( +6 ) – version 1.1
MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.
tags: MrFisk, YiiBot, IRC, bot