public function actionRegisterwisecollections()
{
            $model = new Register( 'search' );
            $model->unsetAttributes();  // clear any default values
            if ( isset( $_GET['Register'] ) )
                $model->attributes = $_GET['Register'];
            if(!empty( $_GET['actionid'] ) && $_GET['actionid'] == Helper::CONST_PDF)
            {
                $html = $this->renderPartial( 'registerwisecollections', array(
                            'model' => $model,
                        ),true );
                $this->writeToPdf( $html );
            }
            else
            {
                $this->render( 'registerwisecollections', array(
                    'model' => $model,
                ) );
            }
}
/**
* Manages all models.
*/
public function actionAdmin()
{
$model=new Register('search');
$model->unsetAttributes();  // clear any default values
if(isset($_GET['Register']))
$model->attributes=$_GET['Register'];

$this->render('admin',array(
'model'=>$model,
));
}