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 = 'cua-rang-me-chua-ngot'
$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 => 'cua-rang-me-chua-ngot'
]
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) 149,
'news_category_id' => (int) 7,
'news_type_id' => (int) 1,
'title_vi' => 'Cua rang me chua ngọt',
'title_en' => '',
'short_content_vi' => 'Món Cua rang me có vị chua của những trái me quyện với vị ngọt của đường, cay cay của ớt, thơm nồng của tỏi và hương thơm đậm đà của những con Cua biển làm cho ai cũng phải nhớ tới sau mỗi lần ăn.',
'description_vi' => '<p>Món Cua rang me là một trong những món HOT của thuyền buồm Đông Dương, để lại nhiều ấn tượng sâu sắc trong lòng khách hàng. Rất nhiều gia đình đến đây đều lựa chọn món Cua rang me cho thực đơn của mình trong buổi tối du ngoạn trên sông Sài Gòn.</p>',
'description_en' => null,
'slug' => 'cua-rang-me-chua-ngot',
'picture' => 'product-thumbnails-1520939396.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