Cjuitabs Renderpartial Module View Outside Of Module

I am using yii-user and want to renderpartial a view from the module into another view outside of the module using cjuitabs.

I am able to render the view as expected /view/subscription/index

<? Yii::app()->getModule('user'); ?>

<? $model = new UserChangePassword; ?>

<?php  $this->widget('zii.widgets.jui.CJuiTabs', array(


  'Subscription'=>$this->renderPartial('/subscription/my', array('model'=>new Subscription), true),

  'Account'=>$this->renderPartial('application.modules.user.views.profile.changepassword', array('model'=>$model), true),


));  ?>

I wanted to use the logic from /modules/user/controllers/ProfileController actionChangepassword() but could not figure out how.

So I moved the logic to my controllers/SubscriptionController

	public function actionIndex()


		$this->layout = 'subscription-column1';

		$this->pageTitle = 'My Subscription';


		$model = new UserChangePassword;		

		if(isset($_POST['ajax']) && $_POST['ajax']==='changepassword-form')


			echo UActiveForm::validate($model);



		if(isset($_POST['UserChangePassword'])) {


				if($model->validate()) {

					$new_password = User::model()->notsafe()->findbyPk(Yii::app()->user->id);

					$new_password->password = Yii::app()->getModule('user')->encrypting($model->password);



					Yii::app()->user->setFlash('profileMessage',UserModule::t("New password saved."));







My /modules/views/profile/changepassword view


<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(





)); ?>

	<?php echo $form->errorSummary($model); ?>


	<div class="row">

	<?php echo $form->passwordFieldRow($model,'oldPassword'); ?>



	<div class="row">

	<?php echo $form->passwordFieldRow($model,'password'); ?>



	<div class="row">

	<?php echo $form->passwordFieldRow($model,'verifyPassword'); ?>



			<?php $this->widget('bootstrap.widgets.TbButton', array(

				'id' => 'submitBtn',

				'buttonType' => 'submit',

				'type' => 'primary',

				'label' => 'Submit',

				'htmlOptions' => array(

					'class' => 'btn-primary',




<?php $this->endWidget(); ?>

I can validate the data, get ajax validation and save. But I do not get error messages from server side validation. Upon the form submitting the view goes back to the first tab. My question is once the changepassword form is submitted how do I do server side validation.

Many thanks.

Solved this issue by using ajax submit. riyazMuhammed covers this well here. Cheers.