build/commands/lite/protected/controllers/PostController.php
public function actionList()
	{
		$pages=new CPagination(Post::model()->count());
		$postList=Post::model()->findAll($this->getListCriteria($pages));

		$this->render('list',array(
			'postList'=>$postList,
			'pages'=>$pages));
	}
public function actionList()
	{
		$pages=new CPagination(Post::model()->count());
		$postList=Post::model()->findAll($this->getListCriteria($pages));

		$this->render('list',array(
			'postList'=>$postList,
			'pages'=>$pages));
	}
public function actionList ( ) { $ pages = new CPagination ( Post :: model ( ) -> count ( ) ) ; $ postList = Post :: model ( ) -> findAll ( $ this -> getListCriteria ( $ pages ) ) ; $ this -> render ( 'list' , array ( 'postList' => $ postList , 'pages' => $ pages ) ) ; }
Lists all posts.
Lists all posts .