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 = 'ban-stra-va-ban-nuoc'
$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 => 'ban-stra-va-ban-nuoc'
]
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) 116,
'news_category_id' => (int) 7,
'news_type_id' => (int) 1,
'title_vi' => 'Bò bít tết sốt tiêu',
'title_en' => '',
'short_content_vi' => 'Bò bít tết khi được ăn kèm những loại sốt tuyệt hảo giúp dậy lên hương vị của món ăn – đây cũng là bí quyết riêng của đầu bếp Indochina Junk.',
'description_vi' => '<p>Nhắc tới bít tết, chúng ta sẽ tưởng tượng ra hình ảnh một miếng thịt bò nguyên sơ, chỉ ướp đơn giản với chút muối tiêu, áp chảo với bơ, cầu kì hơn chút thì nướng thêm trong lò là hoàn thành. Một món ăn nghe đơn giản là thế, ấy vậy mà lại có sức hấp dẫn vô cùng trong các nhà hàng sang trọng trên khắp thế giới. Lý do chính là bởi thứ nước sốt ăn kèm "ảo diệu" – bí quyết riêng của mỗi đầu bếp để lôi kéo thực khách đến với món ăn mộc mạc mà tinh tế này. Bò bít tết khi được ăn kèm những loại sốt tuyệt hảo giúp dậy lên hương vị của món ăn – đây cũng là bí quyết riêng của đầu bếp Indochina Junk đó ạ. Hãy tới ngay để thưởng thức món ăn tuyệt hảo này.</p>',
'description_en' => null,
'slug' => 'ban-stra-va-ban-nuoc',
'picture' => 'product-thumbnails-1518236548.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