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 = 'descor'
$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 => 'descor'
]
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) 117,
'news_category_id' => (int) 7,
'news_type_id' => (int) 1,
'title_vi' => 'Cánh gà chiên nước mắm',
'title_en' => '',
'short_content_vi' => 'Vị thơm ngon đậm đà đặc trưng của món cánh gà chiên nước mắm sẽ khiến bạn không thể cưỡng nổi khi vào bữa ăn tại Indochina Junk đấy.',
'description_vi' => '<p>Thịt gà là loại thịt được ưa chuộng và có thể chế biến được rất nhiều món ăn ngon. Một trong những món ăn chế biến từ thịt gà được nhiều người yêu thích là <strong>cánh gà chiên nước mắm.</strong> Vị thơm ngon đậm đà đặc trưng của món <strong>cánh gà chiên nước mắm</strong> sẽ khiến bạn không thể cưỡng nổi khi vào bữa ăn tại Indochina Junk đấy.</p>',
'description_en' => null,
'slug' => 'descor',
'picture' => 'product-thumbnails-1518236535.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