Dear Guys,
I’ve a tab shows four steps, the default one is the first one, to navigate to the second one I’v to fill all the required data into the first tab, then after create action I should select the second tab.
I already did that, as following:
<a id="lnkNext" href=<?php $url = CController::createAbsoluteUrl("events/create");
echo ‘"’.$url.’"’ ?>
onclick="$(’#yw2’).tabs(‘select’, 1);">Save & Next</a>
But when I click the link ‘Save & Next’ it selects the next tab but returns to the first one, it flickers.
Here you are the create action code, might help:
public function actionCreate()
{
$model=new Events;
$ageRangeList = new EventExpectedCampers();
$validatedItems = array();
if(isset($_POST['Events']))
{
$model->attributes=$_POST['Events'];
if($model->save()&& MultiModelForm::validate($ageRangeList,$validatedItems,$deleteItems))
{
$masterValues = array ('EVENT_ID'=>$model->EVENT_ID);
if (MultiModelForm::save($ageRangeList,$validatedItems,$deleteMembers,$masterValues))
{
$_SESSION["EventId"] = $model->EVENT_ID;
}
}
}
$this->render('create',array('model'=>$model,'ageRangeList'=>$ageRangeList,'validatedItems' => $validatedItems,));
}