public function actionIndex()
	{
		$model = new Events('search');
		$model->unsetAttributes();

		if (isset($_GET['Event']))
			$model->attributes = $_GET['Event'];

		$dataProvider = $model->search();
		$dataProvider->pagination = array(
			'pageVar' => 'page'
		);

		// Throw a 404 if we exceed the number of available results
		if ($dataProvider->totalItemCount == 0 || ($dataProvider->totalItemCount / ($dataProvider->itemCount * Cii::get($_GET, 'page', 1))) < 1)
			throw new CHttpException(404, Yii::t('Api.events', 'No results found'));

		$response = array();

		foreach ($dataProvider->getData() as $content)
			$response[] = $content->getAPIAttributes();

		return array(
			'count' => $model->count(), // This to the TOTAL count (as if pagination DNE)
			'data' => $response // This is JUST the paginated response
		);
	}