Esempio n. 1
0
	/**
	 * Display all site follow
	 */
	public function actionIndex()
	{
		$model = new Follow('search');

		if(!empty($_GET['Follow']))
			$model->attributes = $_GET['Follow'];

		$dataProvider = $model->search();
		$dataProvider->pagination->pageSize = Yii::app()->settings->get('core', 'productsPerPageAdmin');

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