{
public function _initialize(){
parent::_initialize();
$cid = Request::instance()->param("cid");
if(!$cid){
$cid = 107;
}
$this_chanel= Db::name("channel")->find($cid);
$this_chanel['top_name'] = Db::name("channel")->where('id',$this_chanel['topid'])->value("cname");
$this->assign("nei_nav",nav2($this_chanel['topid']));
$this->assign("channel",$this_chanel);
$link2= Db::name("partner")->where("type",1)->order("sort desc")->field("title,url,pic")->select();
$this->assign("link2",$link2);
}
function index(){
$news = Db::name("mk_news")->where("cid",123)->field("nid,title,pic,des,time")->select();
$this->assign("news",$news);