yii

yii lesson 2

/home/hamed/www/widl/protected/config/main.php
change password for gii
change dbname

============

create models and crud operation

============

/views/layout /coulumn2.php
widl/protected/views/customer/form
widl/protected/views/customer/admin
widl/protected/views/customer/view

add all tables in one page

            $this->beginWidget('zii.widgets.CPortlet', array(
				'title'=>'Operations',
			));
            $this->widget('zii.widgets.CMenu', array(
            'htmlOptions'=>array('class'=>'operations'),
            'items'=>array(
        array('label'=>'Home', 'url'=>array('site/index')),
        array('label'=>'Customer', 'url'=>array('customer/admin')),
        array('label'=>'Branch', 'url'=>array('branch/admin')),
        array('label'=>'Department', 'url'=>array('department/admin')),
        array('label'=>'User', 'url'=>array('user/admin')),
        array('label'=>'Attendancebook', 'url'=>array('attendancebook/admin')),
        array('label'=>'Finance', 'url'=>array('finance/admin')),
        array('label'=>'Potentialcustomer', 'url'=>array('potentialcustomer/admin')),
         array('label'=>'Card', 'url'=>array('card/admin')),

            ),
          	));
			$this->endWidget()
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s