* 公益详情页
* @code String
*/
public function view()
{
$id = Request::param('id', 0);
$theNews = Db::name($this->table)->where('id', $id)->where('status', 1)->where('deleted', 0)->find();
$theCate = Db::name('data_welfare_region')->where('id', $theNews['cate'])->where('status', 1)->where('deleted', 0)->find();
$this->assign('theNews',$theNews);
$this->assign('title',$theNews["name"].'-'.$theCate["name"].'-公益地图-PA视讯集团');
$this->assign('keywords',$theNews["name"]);
$this->assign('description',$theNews["remark"]);
$this->assign('theCate',$theCate);
//上下篇
// $preNews = Db::table($this->table)->where('id','<', $theNews["id"])->where('status', 1)->where('deleted', 0)->order('id desc')->find();
// $nextNews = Db::table($this->table)->where('id','>', $theNews["id"])->where('status', 1)->where('deleted', 0)->order('id asc')->find();
// $this->assign('preNews',$preNews);
// $this->assign('nextNews',$nextNews);