Wiki

Articles in category "tips", sorted by ratingX
Displaying 51-60 of 99 result(s).

Troubleshooting Rights Extension

Created about a year ago by junxiongTips4 comments – viewed 10,452 times – ( +4 )
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

How to catch and log MySQL deadlock errors

Created about a year ago by sebTips0 comments – viewed 5,589 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

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

Preventing CJuiTabs from hiding drop-down CMenu items

Created 2 years ago by Steve FriedlTips0 comments – viewed 6,156 times – ( +4 )
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.

Syntax check

Created 2 years ago by Russell EnglandTips2 comments – viewed 4,481 times – ( +4 )
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
tags: php, syntax

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 3 months ago by Rajith RTips0 comments – viewed 5,350 times – ( +4 )
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 .

adding class and links to Ctreeview node

Created about a year ago by bingjie2680Tips2 comments – viewed 7,570 times – ( +4 )
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created about a month ago by le_topTips0 comments – viewed 2,384 times – ( +4 )
Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

Debugging CActiveRecord failed save() attempts

Created 3 days ago by BoazTips0 comments – viewed 689 times – ( +4 )
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

Send asset folder path to a javascript of a widget

Created about a year ago by sensorarioTips4 comments – viewed 10,075 times – ( +4 )
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this: