Articles in category "how-tos"X
Displaying 91-100 of 301 result(s).

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

Created 10 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 9,380 times – ( +7 / -1 ) – version 1.1
Most of the currently available functions/extensions/behaviors directly or indirectly use timestamps to perform "format" and "timezone" conversions. This creates problems for dates falling outside the timestamp range; and the two forms of conversions must often be done in separate processes. However, by using php's DateTime class (instead of timestamps), we can do both 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 daylight saving times and more importantly, historical changes in timezones and daylight saving times.

get summary of related model via STAT relation

Created 10 months ago by rootbearHow-tos2 comments – viewed 7,083 times – ( +6 / -1 ) – version 1.1
typical scenario: invoice, invoice items.

Add Beautiful Radio/Checkbox Buttons To Grid

Created 11 months ago by waterloomattHow-tos1 comment – viewed 12,523 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 theme and layout option in your site

Created 11 months ago by Narender NegiHow-tos0 comments – viewed 4,984 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 12 months ago by Narender NegiHow-tos0 comments – viewed 2,694 times – ( +2 )
Use this code in your view,make sure to put EAmChartWidget in your extension folder. here is the url of widget

Visualization tree-multi subcategories as listbox or dropdownlist

Created 12 months ago by KonApazHow-tos4 comments – viewed 8,477 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 12 months ago by Rajith RHow-tos3 comments – viewed 11,441 times – ( +9 / -6 )
create a class file under protected\components named RActiveRecord.php


Created 12 months ago by ezekielnoobHow-tos6 comments – viewed 6,529 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-tos5 comments – viewed 6,011 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

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