Yii Framework Forum: Tabs Function - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Tabs Function multiple forms in tab Rate Topic: -----

#1 User is offline   badbold 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 13-February 13

Posted 01 April 2013 - 10:10 PM

Hi everyone,

im new in yii, i want use the tabs function in my form but i cant get to it. the idea is i want to put three difference forms which is 'Personal', 'family', 'education', in the tab.

this is the code i do in the 'create.php'

<?php $this->widget('CTabView',array(
    'tabs'=>array(
        'tab1'=>array(
            'title'=>'personal',
            'view'=>'_form',
	    'data'=>array('model'=>$model)
        ),
       'tab2'=>array(
            'title'=>'family',
            'view'=>'_formFamily',
	    'data'=>array('family'=>$family)
       ),
        'tab3'=>array(
            'title'=>'Education',
            'view'=>'_formEducation',
	    'data'=>array('education'=>$education)
        ),
)))
?>


please somebody help me with this problem. Any help would be much appreciated.

thanks.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users