Yii: показать сообщение, когда введенный поиск пуст, и отправить нажатие

Я – Yiibie, и я хочу, чтобы, когда мой поиск был пустым и нажата кнопка отправки, он показывает мне сообщение на моем экране, чтобы заполнить поле первым. Вот код для строки поиска

<?php /* @var $this VolunteerFormController */ /* @var $model VolunteerForm */ ?> <?php $roles=Rights::getAssignedRoles(Yii::app()->user->Id); foreach($roles as $role) { if($role->name == 'Admin') {?><!--till here is done so that if the user is admin the view will be shown and if it not an admin only the message will be shown which we have written in the bottom, same we have done for the user fill the volunteer form--> <?php $this->breadcrumbs=array( 'Volunteer Forms'=>array('index'), $model->id, ); $this->menu=array( array('icon' => 'glyphicon glyphicon-list','label'=>'List VolunteerForm', 'url'=>array('index')), array('icon' => 'glyphicon glyphicon-plus-sign','label'=>'Create VolunteerForm', 'url'=>array('create')), array('icon' => 'glyphicon glyphicon-edit','label'=>'Update VolunteerForm', 'url'=>array('update', 'id'=>$model->id)), array('icon' => 'glyphicon glyphicon-minus-sign','label'=>'Delete VolunteerForm', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks','label'=>'Manage VolunteerForm', 'url'=>array('admin')), ); ?> <?php echo BsHtml::pageHeader('View','VolunteerForm '.$model->id) ?> <?php $this->widget('zii.widgets.CDetailView',array( 'htmlOptions' => array( 'class' => 'table table-striped table-condensed table-hover', ), 'data'=>$model, 'attributes'=>array( 'id', 'team_name', 'name_of_ngo', 'email', 'address', 'no_of_members', 'experience', 'user_id', ), )); ?> <?php } if($role->name=='Authenticated') {?> <br><br><br><br><br><br><br><br><br><br> <div class="alert alert-success"> <strong>Congrats!</strong> You have signed up for Volunteering, You will be contacted soon..!!. </div> <?php } } ?> 

Пожалуйста, помогите мне с этим, спасибо.

Related of "Yii: показать сообщение, когда введенный поиск пуст, и отправить нажатие"