Showing 201-220 of 652 items.

CjuiDatepicker

Created 13 years ago by hiral darji hiral darji, updated 13 years ago by hiral darji hiral darji. 1 comment

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:

'onSelect'=>'js:function(selected) {
$("#HostelRoomStatusMaster_room_status_master_end_date").datepicker("option","minDate",selected);
				}',
1 0
5
Viewed: 14 460 times
Version: 1.1
Category: Tips

Behaviour for Time Zone and Format conversion for Date, Time, timestamp, and datetime

Created 12 years ago by Smithesh Smithesh, updated 11 years ago by Smithesh Smithesh. 1 comment

This Behaviour helps to view time/date/timestamp/datetime from db to local Date / Time / Date Time format and in local Timezone. And save into db in with db timezone and db format. You only need to include this behaviour in models where need this facility.

How to provide a fallback or mapping for translation messages?

Created 13 years ago by schmunk schmunk, updated 11 years ago by schmunk schmunk. 1 comment

Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

3 0
6
Viewed: 16 935 times
Version: 1.1
Category: How-tos

How to setup FCKeditor

Created 17 years ago by krillzip krillzip, updated 14 years ago by Dark-Sun Dark-Sun. 2 comments

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5
Viewed: 41 934 times
Version: 1.1
Category: Tutorials

    How to add more information to Yii::app()->user

    Created 17 years ago by qiang qiang, updated 14 years ago by Yang He Yang He. 2 comments

    By default, the expression Yii::app()->user returns a [CWebUser] [application component](http://www.yiiframework.com/doc/guide/basics.application#application-component) which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, [CWebUser] already comes with a [name|CWebUser::name] property th...

    21 0
    28
    Viewed: 242 259 times
    Version: 1.1
    Category: Tutorials

    Insert a multirow header in CGridView

    Created 13 years ago by Peppe Peppe, updated 12 years ago by Peppe Peppe. 2 comments

    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 h...

    4 0
    5
    Viewed: 32 015 times
    Version: 1.1
    Category: How-tos