Code |
Context $this->set('cat',$danhmuc);
$activecapcao=$this->Category->find('all',array('conditions'=>array('Category.status'=>1,'Category.lft <='=>$danhmuc['Category']['lft'],'Category.rght >='=>$danhmuc['Category']['rght']),'order'=>'Category.lft ASC','fields'=>array('Category.id','Category.name')));
$this->set('active',$activecapcao[0]);
$id = "463"
$danhmuc = array(
"Category" => array(
"id" => "463",
"parent_id" => null,
"overall_id" => "179",
"lft" => "185",
"rght" => "186",
"name" => "LIÊN HỆ ",
"name_2" => "",
"name_3" => "",
"content" => "",
"content_2" => "",
"content_3" => "",
"image" => "",
"alias" => "",
"title" => "",
"keywords" => "",
"description" => "",
"level" => "0",
"hienthi" => "/1/0/0/0/0/0",
"order" => "7",
"order2" => "0",
"created" => "2015-09-18",
"modified" => "2015-10-21",
"status" => "0"
)
)
$z = array()
$activecapcao = array()
ContacstController::index() - APP/controllers/contacst_controller.php, line 71
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83