protected function loadPost()
	{
		if(isset($_GET['id']))
			$post=Post::model()->findbyPk($_GET['id']);
		if(isset($post))
			return $post;
		else
			throw new CHttpException(500,'The requested post does not exist.');
	}