Wiki

Articles in category "how-tos"X
Displaying 141-150 of 350 result(s).

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

Created 2 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 17,856 times – ( +8 / -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 2 years ago by rootbearHow-tos2 comments – viewed 13,790 times – ( +7 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Add Beautiful Radio/Checkbox Buttons To Grid

Created 2 years ago by waterloomattHow-tos1 comment – viewed 21,226 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 2 years ago by Narender NegiHow-tos0 comments – viewed 8,498 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 2 years ago by Narender NegiHow-tos0 comments – viewed 4,099 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 2 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 13,642 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 2 years ago by Rajith RHow-tos4 comments – viewed 22,658 times – ( +9 / -6 ) – version 1.1
create a class file under protected\components named RActiveRecord.php

Yii HMVC

Created 2 years ago by ezekielnoobHow-tos6 comments – viewed 11,438 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 2 years ago by ezekielnoobHow-tos6 comments – viewed 11,378 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:

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

Created 2 years ago by whatifHow-tos2 comments – viewed 30,828 times – ( +8 / -1 ) – version 1.1
Hi Everyone