public function actionPageviews()
	{
		$models = Events::model()->groupByUrl()->findAll();
		$response = array();

		foreach ($models as $model)
			$response[] = array(
				'uri' => $model->uri,
				'count' => $model->id
			);

		return $response;
	}
public function actionPageviews()
	{
		$models = Events::model()->groupByUrl()->findAll();
		$response = array();

		foreach ($models as $model)
			$response[] = array(
				'uri' => $model->uri,
				'count' => $model->id
			);

		return $response;
	}
public function actionPageviews ( ) { $ models = Events :: model ( ) -> groupByUrl ( ) -> findAll ( ) ; $ response = array ( ) ; foreach ( $ models as $ model ) $ response [ ] = array ( 'uri' => $ model -> uri , 'count' => $ model -> id ) ; return $ response ; }
Shows pageview results
@return array
Shows pageview results