Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
$ svn checkout http://yii-analogue-clock-widget.googlecode.com/svn/trunk/ <yii-analogue-clock-widget>
$ cd <yii-demo-directory> $ ../framework/yiic webapp <app-name>
$ cp <yii-analogue-clock-widget>/analogue-clock-*.png <app-name>/images/ $ cp <yii-analogue-clock-widget>/Clock.php <app-name>/protected/components/ $ mkdir <app-name>/protected/components/views $ cp <yii-analogue-clock-widget>/analogue-clock.php !$
'import'=>array(
'application.models.*',
'application.components.*',
'zii.widgets.*', <<< this line
),
public $layout='//layouts/column2';
<?php $this->widget('Clock'); ?>

Be the first person to leave a comment
Please login to leave your comment.