Wiki

Sorted by viewsX
Displaying 521-530 of 784 result(s).

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

Created 4 years ago by thyseusTips4 comments – viewed 12,964 times – ( +11 / -1 )
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:

Display Status image on CGridView column

Created 3 years ago by Ankit ModiTutorials1 comment – viewed 12,940 times – ( +2 / -2 ) – version all
How to display status image on admin gridview.

Relational Query - Lazy Loadnig and Eager Loading in Yii 2.0

Created about a year ago by softarkTutorials0 comments – viewed 12,904 times – ( +5 / -1 ) – version 2.0
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's very important to know how the Eager Loading approach works in Yii 2. It has changed drastically from that of Yii 1.1, and there are common misunderstandings about it in the community.

Ordering Models by Weight with CJuiSortable

Created 7 years ago by Matt KelliherTutorials2 comments – viewed 12,845 times – ( +10 / -1 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

Load data from internal/external source to fill form fields

Created 2 years ago by skwordenHow-tos4 comments – viewed 12,791 times – ( +1 / -1 ) – version 2.0
This wiki is to show you how to use jQuery get and JSON to get data from a dropdown/any form field and fill form fields with the values instantaneously. First, I'll give example use cases of what I'm going to teach you so you can quickly see if this is for you.

How to extend CFormatter, add i18n support to booleanFormat and use it in CDetailView

Created 5 years ago by c@cbaHow-tos3 comments – viewed 12,789 times – ( +9 / -1 ) – version 1.1
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 12,770 times – ( +2 / -1 ) – version 1.1
After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

Advanced CTabView using CClipWidget

Created 8 years ago by krillzipTutorials1 comment – viewed 12,757 times – ( +2 / -1 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Moving the vendor directory for multiple projects

Created 2 years ago by mariosimaremareHow-tos2 comments – viewed 12,747 times – ( +5 / -2 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

How to catch and log MySQL deadlock errors

Created 5 years ago by sebTips1 comment – viewed 12,724 times – ( +4 / -1 ) – 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