Code Context $news_cat = $this->Common->getNewsCatIDByNewCategorySlug($categorySlug);
$news = $this->Common->getNewsByNewsSlug($newsSlug);
$relatednews = $this->Common->getRelatedNewsByNewCategoryIDandNewsId($news_cat->id, $news->id);
$categorySlug = 'this-week-special'
$newsSlug = 'brasnding'
$this = object(App\Controller\HomeController) {
name => 'Home'
helpers => []
request => object(Cake\Network\Request) {}
response => object(Cake\Network\Response) {}
paginate => []
autoRender => true
components => []
View => null
plugin => null
passedArgs => [
(int) 0 => 'this-week-special',
(int) 1 => 'brasnding'
]
modelClass => 'Home'
viewClass => null
viewVars => [
'logo' => object(Cake\ORM\Entity) {},
'openhours' => [
[maximum depth reached]
],
'title' => 'Indochina Junk - Thuyền buồm Đông Dương',
'address' => object(App\Model\Entity\News) {},
'name' => 'Indochina Junk - Thuyền buồm Đông Dương',
'phone' => object(App\Model\Entity\News) {},
'email' => object(App\Model\Entity\News) {},
'facebook' => object(Cake\ORM\Entity) {},
'instagram' => object(Cake\ORM\Entity) {},
'youtube' => object(Cake\ORM\Entity) {},
'locale' => 'vi',
'description' => 'mô tả',
'keywords' => 'từ khoá'
]
RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) {}
Flash => object(Cake\Controller\Component\FlashComponent) {}
Cookie => object(Cake\Controller\Component\CookieComponent) {}
Common => object(App\Controller\Component\CommonComponent) {}
[protected] Session => object(Cake\Network\Session) {}
[protected] _configuration => []
[protected] _responseClass => 'Cake\Network\Response'
[protected] _components => object(Cake\Controller\ComponentRegistry) {}
[protected] _validViewOptions => [
(int) 0 => 'passedArgs'
]
[protected] _eventManager => object(Cake\Event\EventManager) {}
[protected] _eventClass => '\Cake\Event\Event'
[protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) {}
[protected] _modelFactories => [
'Table' => [
[maximum depth reached]
]
]
[protected] _modelType => 'Table'
[protected] _viewBuilder => null
}
$sliders = [
(int) 0 => object(Cake\ORM\Entity) {
'id' => (int) 4,
'title' => '',
'content' => '',
'picture' => 'slideshow-1568187814.png',
'url' => '',
'order' => null,
'published' => (int) 1,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Slideshows'
},
(int) 1 => object(Cake\ORM\Entity) {
'id' => (int) 6,
'title' => '',
'content' => '',
'picture' => 'slideshow-1568187838.png',
'url' => '',
'order' => null,
'published' => (int) 1,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Slideshows'
},
(int) 2 => object(Cake\ORM\Entity) {
'id' => (int) 1,
'title' => '',
'content' => 'HOTLINE 0888.024.240 - 028.38957.438',
'picture' => 'slideshow-1517641773.png',
'url' => '',
'order' => (int) 1,
'published' => (int) 1,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Slideshows'
},
(int) 3 => object(Cake\ORM\Entity) {
'id' => (int) 8,
'title' => '',
'content' => '',
'picture' => 'slideshow-1546932593.png',
'url' => '',
'order' => (int) 2,
'published' => (int) 1,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Slideshows'
},
(int) 4 => object(Cake\ORM\Entity) {
'id' => (int) 3,
'title' => '',
'content' => '',
'picture' => 'slideshow-1520335390.png',
'url' => '',
'order' => (int) 3,
'published' => (int) 1,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'Slideshows'
}
]
$cats = [
(int) 0 => object(App\Model\Entity\NewsCategory) {
'id' => (int) 12,
'lft' => (int) 11,
'rght' => (int) 12,
'title_vi' => 'EVENTS',
'title_en' => '',
'slug' => 'events',
'not_delete' => true,
'published' => true,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'NewsCategories'
},
(int) 1 => object(App\Model\Entity\NewsCategory) {
'id' => (int) 3,
'lft' => (int) 5,
'rght' => (int) 6,
'title_vi' => 'NEWS',
'title_en' => 'NEWS',
'slug' => 'tin-tuc-cua-chung-toi',
'not_delete' => true,
'published' => true,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'NewsCategories'
},
(int) 2 => object(App\Model\Entity\NewsCategory) {
'id' => (int) 14,
'lft' => (int) 15,
'rght' => (int) 16,
'title_vi' => 'RESERVATION',
'title_en' => '',
'slug' => 'reservation',
'not_delete' => false,
'published' => true,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'[new]' => false,
'[accessible]' => [
[maximum depth reached]
],
'[dirty]' => [[maximum depth reached]],
'[original]' => [[maximum depth reached]],
'[virtual]' => [[maximum depth reached]],
'[errors]' => [[maximum depth reached]],
'[invalid]' => [[maximum depth reached]],
'[repository]' => 'NewsCategories'
}
]
$news_cat = null
$news = object(App\Model\Entity\News) {
'id' => (int) 118,
'news_category_id' => (int) 7,
'news_type_id' => (int) 1,
'title_vi' => 'Gà nướng xôi chiên',
'title_en' => '',
'short_content_vi' => 'Xôi chiên phồng căng tròn như quả bóng, cắn miếng giòn rụm, vẫn giữ được độ dẻo của nếp, vị ngọt nhẹ của đường, ăn cùng gà nướng vàng dậy mùi khiến thực khách không thể cưỡng lại.',
'description_vi' => '<p>Xôi chiên phồng căng tròn như quả bóng, cắn miếng giòn rụm, vẫn giữ được độ dẻo của nếp, vị ngọt nhẹ của đường, ăn cùng gà nướng vàng dậy mùi khiến thực khách tại Indochina Junk không thể cưỡng lại. </p>',
'description_en' => null,
'slug' => 'brasnding',
'picture' => 'product-thumbnails-1518236511.png',
'not_delete' => false,
'hot_news' => false,
'published' => true,
'created' => object(Cake\I18n\FrozenTime) {},
'modified' => object(Cake\I18n\FrozenTime) {},
'news_category' => object(App\Model\Entity\NewsCategory) {},
'[new]' => false,
'[accessible]' => [
'*' => true
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'News'
}
App\Controller\HomeController::detail() - APP/Controller/HomeController.php, line 69
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 429
Cake\Routing\Dispatcher::_invoke() - CORE/src/Routing/Dispatcher.php, line 114
Cake\Routing\Dispatcher::dispatch() - CORE/src/Routing/Dispatcher.php, line 87
[main] - ROOT/webroot/index.php, line 38