Code |
Context $this->set('cat',$danhmuc);
$z2=$this->Category->find('all',array('conditions'=>array('Category.status'=>1,'Category.lft <='=>$danhmuc['Category']['lft'],'Category.rght >='=>$danhmuc['Category']['rght']),'order'=>'Category.id DESC'));//nhóm danh mục
$this->set('mu_id',$z2[0]['Category']['id']);
$id = "336"
$danhmuc = array(
"Category" => array(
"id" => "336",
"parent_id" => null,
"overall_id" => "176",
"lft" => "1",
"rght" => "2",
"name" => "Tin tức",
"name_2" => "",
"name_3" => "",
"content" => "Tin tức",
"content_2" => "",
"content_3" => "",
"image" => "",
"alias" => "",
"title" => "",
"keywords" => "Tin tức",
"description" => "Tin tức",
"level" => "0",
"hienthi" => "/1/0/0/0/0/0",
"order" => "3",
"order2" => "0",
"created" => "2014-01-07",
"modified" => "2019-08-02",
"status" => "0"
)
)
$z = array()
$z2 = array()
NewsController::index() - APP/controllers/news_controller.php, line 14
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83