Wiki

Articles in category "tips", sorted by date (updated)X
Displaying 51-60 of 141 result(s).

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

Updated about a year ago by thyseusTips3 comments – viewed 9,425 times – ( +11 )
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:

Using sub query for doubletts

Updated about a year ago by mbTips3 comments – viewed 7,761 times – ( +1 ) – version 1.1
find doubletts by db fields. in this example i will check doublets for 3 tabelfields (col1,col2,col3). so i will get a subquery with the condition, select and grouping of the tablefields. the having with COUNT() > 1 means: find all records more then one result.

How to use a component before every action of a controller

Updated about a year ago by transistorTips1 comment – viewed 18,721 times – ( +2 / -1 ) – version 1.1
I guess this is a tip on how to execute some code before every action in a controller, because I will tell you how I did it and maybe you can use the idea in your project.

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

Updated about a year ago by le_topTips0 comments – viewed 6,739 times – ( +5 ) – version 1.1
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.

CjuiDatepicker

Updated about a year ago by hiral darjiTips1 comment – viewed 5,715 times – ( +3 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

using jqbargraph to create beautiful graphs

Updated about a year ago by MAHESH.E.UTips1 comment – viewed 5,824 times – ( +5 ) – version 1.1
If you are about to create a graph, the best option i would suggest is the jqbargraph.

CGridView: Render customized/complex datacolumns

Updated about a year ago by JobloTips13 comments – viewed 116,580 times – ( +73 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

CJuiTabs Content

Updated about a year ago by mbalaTips2 comments – viewed 10,946 times – ( +6 ) – version 1.1
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Fixing extensions without modifying their code

Updated about a year ago by schmunkTips3 comments – viewed 6,031 times – ( +6 ) – version 1.1
If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

Adding a link to a CDataColumn

Updated about a year ago by le_topTips6 comments – viewed 9,442 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.