Wiki

Articles in category "how-tos"X
Displaying 131-140 of 341 result(s).

custom sql query results to CDetailView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos8 comments – viewed 22,380 times – ( +3 ) – version 1.1
This is a bried guide about displaying of custom sql query results.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created about a year ago by Gerhard LiebenbergHow-tos3 comments – viewed 15,002 times – ( +7 / -1 ) – version 1.1
Countries sometimes change their laws pertaining to timezones and daylight saving times. This means that GMT+2 can be a different time this August compared to last August! However, by using php's DateTime class (instead of timestamps), we can do both "format" and "timezone" conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as current and historical timezones and daylight saving times.

get summary of related model via STAT relation

Created about a year ago by rootbearHow-tos2 comments – viewed 11,145 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Add Beautiful Radio/Checkbox Buttons To Grid

Created about a year ago by waterloomattHow-tos1 comment – viewed 18,185 times – ( +10 / -2 ) – version 1.1
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 theme and layout option in your site

Created about a year ago by Narender NegiHow-tos0 comments – viewed 7,431 times – ( +1 )
Here i am writing code how to add option of theme change and layout change in your website.
tags: theme, layouts

make chart from custome queries using amcharts widget

Created about a year ago by Narender NegiHow-tos0 comments – viewed 3,392 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/

Visualization tree-multi subcategories as listbox or dropdownlist

Created about a year ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 12,104 times – ( +4 ) – version 1.1
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ?

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

Created about a year ago by Rajith RHow-tos4 comments – viewed 18,553 times – ( +9 / -6 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Yii HMVC

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 9,415 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)

Created about a year ago by ezekielnoobHow-tos6 comments – viewed 9,456 times – ( +5 ) – version 1.1
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: