Wiki

Sorted by viewsX
Displaying 421-430 of 600 result(s).

How to catch and log MySQL deadlock errors

Created 2 years ago by sebTips0 comments – viewed 7,611 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: use github for download yii, create new app, and store our modules or extensions.

Created about a year ago by sensorarioHow-tos1 comment – viewed 7,604 times – ( +8 ) – version 1.1
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git

Understanding series articles

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

Get 'source' data from the database - for TbEditableColumn or EditableColumn ('type'=>'select' / dropdownlist)

Created 9 months ago by Gerhard LiebenbergHow-tos0 comments – viewed 7,318 times – ( +3 / -1 )
If you want to edit data directly in the gridview in a 'dropdownlist' style, then you could use the 'type' => 'select' option of TbEditableColumn (YiiBooster) or EditableColumn (x-editable for Yii). This wiki shows how to get data from the db for the 'dropdownlist', by converting AR model data into an array that is passed in json format.

CButtonColumn and Font Awesome icons

Created 8 months ago by DerekCTips3 comments – viewed 7,304 times – ( +4 )
I was looking for a way to use Font Awsome icons instead of the default images in a CGridView -> CButtonColumn. Perhaps this will be useful to someone.

YII SaaS Multi Tenant application with single database

Created 10 months ago by Rajith RTutorials3 comments – viewed 7,229 times – ( +7 / -3 )
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

"safe" and "unsafe" Model validators (massive assignments)

Created 9 months ago by KonApazHow-tos4 comments – viewed 7,125 times – ( +4 / -2 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Log Activity in DataBase

Created 9 months ago by mahdi1986Tutorials6 comments – viewed 7,124 times – ( +7 )
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

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

Created 11 months ago by thyseusTips3 comments – viewed 7,080 times – ( +8 )
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:

Create a custom menu using CMenu data-items (flat or tree structure)

Created 6 months ago by KonApazHow-tos0 comments – viewed 7,047 times – ( +4 )
There are cases that you want more control to your menu Suppose you want a specific menu with complex css, layout, images. also you want to add extra content,html,css,javascript etc it run time foreach submenu item by conditions.