Hello,
i created admin form use Gii tool and i tried to modify location path of view.
protected
- Controller
* UserController.php
- views
- admin
- user
* admin.php // admin page
* _search.php // partial page
and this code in controller :
public function actionUser(){
$model=new TUser('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['TUser']))
$model->attributes=$_GET['TUser'];
$this->render('/admin/user/admin',array('model'=>$model));
}
this view code:
<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
'model'=>$model,
)); ?>
</div><!-- search-form -->
but, when i call actionUser() method get error:
UserController cannot find the requested view "_search".
how to fix this error ?
thanks