Wiki

Sorted by viewsX
Displaying 431-440 of 687 result(s).

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips1 comment – viewed 8,093 times – ( +4 ) – version 1.1
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

Using CListView to display items next to each other (in columns)

Created about a year ago by thyseusTips3 comments – viewed 8,091 times – ( +10 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 8,024 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Using the jamselect widget with min and max values

Created 3 years ago by got 2 doodleHow-tos0 comments – viewed 7,991 times – ( +2 ) – version 1.1
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

ISA hierarchy of tables inside a database and how to implement a single form

Created 3 years ago by pligorHow-tos2 comments – viewed 7,964 times – ( +1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

How to create a criteria condition for a multiple value text search i.e a "LIKE IN"

Created 6 months ago by tophHow-tos2 comments – viewed 7,928 times – ( -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

A Multi-Tenant Strategy using Yii and MySQL

Created 6 months ago by JFReyesHow-tos7 comments – viewed 7,894 times – ( +8 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

Facebook DeAuthorize callback URL and its response data.

Created about a year ago by sirin kTutorials1 comment – viewed 7,752 times – ( +3 ) – version 1.1
Facebook Deauthorize callback is used to getting notification to the app owner when a user uninstall our app from their fan page or profile.
tags: facebook

Understanding series articles

Created 2 years ago by GOshaTips0 comments – viewed 7,735 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 7,733 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.