Wiki

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

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips1 comment – viewed 8,111 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

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 8,089 times – ( -1 ) – version 1.1
This is a shortcut for adding a text search for multiple values i.e.

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 8,062 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,997 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,971 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:

A Multi-Tenant Strategy using Yii and MySQL

Created 7 months ago by JFReyesHow-tos7 comments – viewed 7,942 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,792 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

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 7,753 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.

Multi level dropdown menu in Bootstrap

Created 6 months ago by sefburhanTutorials1 comment – viewed 7,745 times – ( +37 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

Understanding series articles

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