Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 131-140 of 306 result(s).

Add Beautiful Radio/Checkbox Buttons To Grid

Updated about a year ago by waterloomattHow-tos1 comment – viewed 12,994 times – ( +9 / -2 )
This is a tutorial on how to create slick looking status buttons to update a model's status via a grid. Note** This tutorial uses Yii Bootstrap for styling.

make chart from custome queries using amcharts widget

Updated about a year ago by trondHow-tos0 comments – viewed 2,741 times – ( +2 )
Use this code in your view,make sure to put EAmChartWidget in your extension folder. here is the url of widget http://www.yiiframework.com/extension/eamchartwidget/

Multiple Database Connection : Select database based on login user id, Dynamic

Updated about a year ago by Rajith RHow-tos3 comments – viewed 11,983 times – ( +9 / -6 )
create a class file under protected\components named RActiveRecord.php

Yii HMVC

Updated about a year ago by ezekielnoobHow-tos6 comments – viewed 6,721 times – ( +5 / -1 )
Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider

CGridView Date Range Without Cookies or Session (External Filtering)

Updated about a year ago by Maurizio Domba CerinHow-tos5 comments – viewed 6,223 times – ( +4 )
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

How to use Expression in default AccessControl to allow only the owner to do some action

Updated about a year ago by whatifHow-tos1 comment – viewed 13,832 times – ( +7 / -1 )
Hi Everyone

how to make a dynamic progress bar to show the percentage or status

Updated about a year ago by hehbhehbHow-tos1 comment – viewed 13,183 times – ( +5 )
Yii have a CJuiProgressBar, but it is static. If we want a dynamic progress bar to show the percentage or status, we have to do more things. I make it successfully and am glad to share it with you.

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

Updated about a year ago by KonApazHow-tos4 comments – viewed 9,272 times – ( +4 / -6 )
Ok, it is a little bit difficult to full understanding the unsafe validator.

Insert a multirow header in CGridView

Updated about a year ago by PeppeHow-tos2 comments – viewed 8,437 times – ( +4 )
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

Building Page Specific Menus using CMenu

Updated about a year ago by mistrybHow-tos1 comment – viewed 7,142 times
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu