Code Context <?php
foreach($related as $rt){
echo $this->element('Tours/block',['tour'=> $rt]);
$viewFile = '/srv/users/iberocycle/apps/tours/public/src/Template/Element/Components/related_tours_slider.ctp'
$dataForView = [
'domain' => null,
'_serialize' => [
(int) 0 => 'tour',
(int) 1 => 'search',
(int) 2 => 'related_tours'
],
'tour' => object(App\Model\Entity\Tour) {
'id' => (int) 4300,
'tour_operator_id' => (int) 1,
'title' => 'Picos de Europa to Bilbao',
'slug' => 'picos-de-europa-to-bilbao',
'summary' => 'A great tour in a cycling paradise, from Asturias in the west, through the Picos de Europa, Cantabria and the Basque Country to Bilbao',
'details' => 'Starting in the Asturian village of Cangas de Onís, the tour moves eastwards towards Bilbao. En route it takes in the mountain scenery of the Picos de Europa and the Cantabrian Mountains and the the coast of the Bay of Biscay to Bilbao in the Basque Country. Each day there is a variety of routes to suit all abilities, and stopovers of 2, 3 or 4 nights mean you can cycle as much, or as little as you like. ',
'level' => null,
'map' => 'https://www.google.com/maps/d/u/2/embed?mid=1yAQ7lM2AaZC-okNPgXJz-92VWhs5Nxiv',
'guided_pricing_from' => null,
'guided_date_pricing' => null,
'guided_room_pricing' => null,
'self_guided_pricing_from' => null,
'self_guided_date_pricing' => null,
'self_guided_room_pricing' => null,
'supplements' => null,
'extras' => null,
'default_image' => '5-789e2.jpg',
'price' => null,
'price_details' => null,
'start_date' => null,
'end_date' => null,
'date_repeat_config' => null,
'personalise' => null,
'highlights' => '<p>The stunnning landscapte of the Picos de Europa</p>
<p>A great variety of cycling routes to suit all abilities</p>
<p>Beautiful and unspolit scenery of the mountains, hillls and coastline of Northern Spain</p>
<p>Bilbao and the Guggenheim Museum</p>
<p>Lush green landscapes and limestone mountain</p>
',
'changes' => null,
'included' => null,
'excluded' => null,
'is_published' => true,
'is_featured' => true,
'created_at' => object(Cake\I18n\FrozenTime) {},
'modified_at' => object(Cake\I18n\FrozenTime) {},
'start_sat' => false,
'start_sun' => false,
'start_mon' => false,
'start_any' => false,
'is_guided' => false,
'is_self_guided' => false,
'is_personalise' => false,
'num_nights' => (int) 14,
'distance' => (int) 612,
'mini_map' => null,
'reference_url' => null,
'tour_extras' => [[maximum depth reached]],
'tour_prices' => [[maximum depth reached]],
'tour_countries' => [
[maximum depth reached]
],
'tour_images' => [[maximum depth reached]],
'tour_faqs' => [[maximum depth reached]],
'tour_days' => [
[maximum depth reached]
],
'testimonials' => [[maximum depth reached]],
'_i18n' => [[maximum depth reached]],
'bikes' => [[maximum depth reached]],
'_locale' => 'en',
'[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]' => 'Tours'
},
'search' => [
'countries' => object(Cake\ORM\Query) {},
'country' => object(App\Model\Entity\TourCountry) {},
'viewing_id' => (int) 4300
],
'related_tours' => null,
'num_per_page' => null,
'tours' => object(Cake\Datasource\ResultSetDecorator) {
'count' => (int) 20
},
'countries' => object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT Countries.id AS `Countries__id`, Countries.country AS `Countries__country`, Countries.css_code AS `Countries__css_code`, Countries_country_translation.id AS `Countries_country_translation__id`, Countries_country_translation.locale AS `Countries_country_translation__locale`, Countries_country_translation.model AS `Countries_country_translation__model`, Countries_country_translation.foreign_key AS `Countries_country_translation__foreign_key`, Countries_country_translation.field AS `Countries_country_translation__field`, Countries_country_translation.content AS `Countries_country_translation__content` FROM countries Countries LEFT JOIN i18n Countries_country_translation ON (Countries_country_translation.model = :c0 AND Countries_country_translation.field = :c1 AND Countries_country_translation.locale = :c2 AND Countries.id = (Countries_country_translation.foreign_key)) ORDER BY Countries.country ASC',
'params' => [
[maximum depth reached]
],
'defaultTypes' => [
[maximum depth reached]
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 1,
'mapReducers' => (int) 0,
'contain' => [
[maximum depth reached]
],
'matching' => [[maximum depth reached]],
'extraOptions' => [[maximum depth reached]],
'repository' => object(App\Model\Table\CountriesTable) {}
},
'viewing' => '',
'regions' => object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT Regions.id AS `Regions__id`, Regions.country_id AS `Regions__country_id`, Regions.region AS `Regions__region` FROM regions Regions',
'params' => [[maximum depth reached]],
'defaultTypes' => [
[maximum depth reached]
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 0,
'mapReducers' => (int) 0,
'contain' => [[maximum depth reached]],
'matching' => [[maximum depth reached]],
'extraOptions' => [[maximum depth reached]],
'repository' => object(App\Model\Table\RegionsTable) {}
},
'tourCount' => (int) 12,
'page' => (int) 1,
'possibleCountryResults' => [
(int) 1 => (int) 41,
(int) 4 => (int) 2,
(int) 5 => (int) 1,
(int) 8 => (int) 3,
(int) 12 => (int) 1,
(int) 15 => (int) 1
],
'possibleTypeResults' => [
'sg' => (int) 25,
'g' => (int) 14
],
'months' => [
'2021-01' => 'January',
'2021-02' => 'February',
'2021-03' => 'March',
'2021-04' => 'April',
'2021-05' => 'May',
'2021-06' => 'June',
'2021-07' => 'July',
'2021-08' => 'August',
'2021-09' => 'September',
'2021-10' => 'October',
'2021-11' => 'November',
'2021-12' => 'December'
],
'monthCounts' => [
'2020-04' => (int) 18,
'2020-05' => (int) 18,
'2020-06' => (int) 18,
'2020-07' => (int) 18,
'2020-08' => (int) 19,
'2020-09' => (int) 18,
'2020-10' => (int) 18,
'2020-03' => (int) 8,
'2020-11' => (int) 5,
'2019-03' => (int) 8,
'2019-04' => (int) 8,
'2019-05' => (int) 10,
'2019-06' => (int) 8,
'2019-07' => (int) 9,
'2019-08' => (int) 9,
'2019-09' => (int) 11,
'2019-10' => (int) 10,
'2019-11' => (int) 3,
'2019-12' => (int) 4,
'2020-01' => (int) 3,
'2020-02' => (int) 3,
'2018-11' => (int) 1,
'2018-12' => (int) 1,
'2020-12' => (int) 1,
'2019-01' => (int) 1,
'2019-02' => (int) 1
],
'related' => null
]
$domain = null
$_serialize = [
(int) 0 => 'tour',
(int) 1 => 'search',
(int) 2 => 'related_tours'
]
$tour = object(App\Model\Entity\Tour) {
'id' => (int) 4300,
'tour_operator_id' => (int) 1,
'title' => 'Picos de Europa to Bilbao',
'slug' => 'picos-de-europa-to-bilbao',
'summary' => 'A great tour in a cycling paradise, from Asturias in the west, through the Picos de Europa, Cantabria and the Basque Country to Bilbao',
'details' => 'Starting in the Asturian village of Cangas de Onís, the tour moves eastwards towards Bilbao. En route it takes in the mountain scenery of the Picos de Europa and the Cantabrian Mountains and the the coast of the Bay of Biscay to Bilbao in the Basque Country. Each day there is a variety of routes to suit all abilities, and stopovers of 2, 3 or 4 nights mean you can cycle as much, or as little as you like. ',
'level' => null,
'map' => 'https://www.google.com/maps/d/u/2/embed?mid=1yAQ7lM2AaZC-okNPgXJz-92VWhs5Nxiv',
'guided_pricing_from' => null,
'guided_date_pricing' => null,
'guided_room_pricing' => null,
'self_guided_pricing_from' => null,
'self_guided_date_pricing' => null,
'self_guided_room_pricing' => null,
'supplements' => null,
'extras' => null,
'default_image' => '5-789e2.jpg',
'price' => null,
'price_details' => null,
'start_date' => null,
'end_date' => null,
'date_repeat_config' => null,
'personalise' => null,
'highlights' => '<p>The stunnning landscapte of the Picos de Europa</p>
<p>A great variety of cycling routes to suit all abilities</p>
<p>Beautiful and unspolit scenery of the mountains, hillls and coastline of Northern Spain</p>
<p>Bilbao and the Guggenheim Museum</p>
<p>Lush green landscapes and limestone mountain</p>
',
'changes' => null,
'included' => null,
'excluded' => null,
'is_published' => true,
'is_featured' => true,
'created_at' => object(Cake\I18n\FrozenTime) {},
'modified_at' => object(Cake\I18n\FrozenTime) {},
'start_sat' => false,
'start_sun' => false,
'start_mon' => false,
'start_any' => false,
'is_guided' => false,
'is_self_guided' => false,
'is_personalise' => false,
'num_nights' => (int) 14,
'distance' => (int) 612,
'mini_map' => null,
'reference_url' => null,
'tour_extras' => [],
'tour_prices' => [],
'tour_countries' => [
(int) 0 => object(App\Model\Entity\TourCountry) {}
],
'tour_images' => [],
'tour_faqs' => [],
'tour_days' => [
(int) 0 => object(App\Model\Entity\TourDay) {},
(int) 1 => object(App\Model\Entity\TourDay) {},
(int) 2 => object(App\Model\Entity\TourDay) {},
(int) 3 => object(App\Model\Entity\TourDay) {},
(int) 4 => object(App\Model\Entity\TourDay) {},
(int) 5 => object(App\Model\Entity\TourDay) {},
(int) 6 => object(App\Model\Entity\TourDay) {},
(int) 7 => object(App\Model\Entity\TourDay) {},
(int) 8 => object(App\Model\Entity\TourDay) {},
(int) 9 => object(App\Model\Entity\TourDay) {},
(int) 10 => object(App\Model\Entity\TourDay) {},
(int) 11 => object(App\Model\Entity\TourDay) {},
(int) 12 => object(App\Model\Entity\TourDay) {},
(int) 13 => object(App\Model\Entity\TourDay) {},
(int) 14 => object(App\Model\Entity\TourDay) {}
],
'testimonials' => [],
'_i18n' => [],
'bikes' => [],
'_locale' => 'en',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [],
'[original]' => [],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Tours'
}
$search = [
'countries' => object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT Countries.id AS `Countries__id`, Countries.country AS `Countries__country`, Countries.css_code AS `Countries__css_code`, Countries_country_translation.id AS `Countries_country_translation__id`, Countries_country_translation.locale AS `Countries_country_translation__locale`, Countries_country_translation.model AS `Countries_country_translation__model`, Countries_country_translation.foreign_key AS `Countries_country_translation__foreign_key`, Countries_country_translation.field AS `Countries_country_translation__field`, Countries_country_translation.content AS `Countries_country_translation__content` FROM countries Countries LEFT JOIN i18n Countries_country_translation ON (Countries_country_translation.model = :c0 AND Countries_country_translation.field = :c1 AND Countries_country_translation.locale = :c2 AND Countries.id = (Countries_country_translation.foreign_key))',
'params' => [
[maximum depth reached]
],
'defaultTypes' => [
[maximum depth reached]
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 1,
'mapReducers' => (int) 0,
'contain' => [
[maximum depth reached]
],
'matching' => [[maximum depth reached]],
'extraOptions' => [[maximum depth reached]],
'repository' => object(App\Model\Table\CountriesTable) {}
},
'country' => object(App\Model\Entity\TourCountry) {
'id' => (int) 1928,
'tour_id' => (int) 4300,
'country_id' => (int) 1,
'country' => object(Cake\ORM\Entity) {},
'[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]' => 'TourCountries'
},
'viewing_id' => (int) 4300
]
$related_tours = null
$num_per_page = null
$tours = object(Cake\Datasource\ResultSetDecorator) {
'count' => (int) 20
}
$countries = object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT Countries.id AS `Countries__id`, Countries.country AS `Countries__country`, Countries.css_code AS `Countries__css_code`, Countries_country_translation.id AS `Countries_country_translation__id`, Countries_country_translation.locale AS `Countries_country_translation__locale`, Countries_country_translation.model AS `Countries_country_translation__model`, Countries_country_translation.foreign_key AS `Countries_country_translation__foreign_key`, Countries_country_translation.field AS `Countries_country_translation__field`, Countries_country_translation.content AS `Countries_country_translation__content` FROM countries Countries LEFT JOIN i18n Countries_country_translation ON (Countries_country_translation.model = :c0 AND Countries_country_translation.field = :c1 AND Countries_country_translation.locale = :c2 AND Countries.id = (Countries_country_translation.foreign_key)) ORDER BY Countries.country ASC',
'params' => [
':c0' => [
[maximum depth reached]
],
':c1' => [
[maximum depth reached]
],
':c2' => [
[maximum depth reached]
]
],
'defaultTypes' => [
'Countries__id' => 'integer',
'Countries.id' => 'integer',
'id' => 'integer',
'Countries__country' => 'string',
'Countries.country' => 'string',
'country' => 'string',
'Countries__css_code' => 'string',
'Countries.css_code' => 'string',
'css_code' => 'string',
'Countries_country_translation__id' => 'integer',
'Countries_country_translation.id' => 'integer',
'Countries_country_translation__locale' => 'string',
'Countries_country_translation.locale' => 'string',
'locale' => 'string',
'Countries_country_translation__model' => 'string',
'Countries_country_translation.model' => 'string',
'model' => 'string',
'Countries_country_translation__foreign_key' => 'integer',
'Countries_country_translation.foreign_key' => 'integer',
'foreign_key' => 'integer',
'Countries_country_translation__field' => 'string',
'Countries_country_translation.field' => 'string',
'field' => 'string',
'Countries_country_translation__content' => 'text',
'Countries_country_translation.content' => 'text',
'content' => 'text'
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 1,
'mapReducers' => (int) 0,
'contain' => [
'Countries_country_translation' => [
[maximum depth reached]
]
],
'matching' => [],
'extraOptions' => [],
'repository' => object(App\Model\Table\CountriesTable) {}
}
$viewing = ''
$regions = object(Cake\ORM\Query) {
'(help)' => 'This is a Query object, to get the results execute or iterate it.',
'sql' => 'SELECT Regions.id AS `Regions__id`, Regions.country_id AS `Regions__country_id`, Regions.region AS `Regions__region` FROM regions Regions',
'params' => [],
'defaultTypes' => [
'Regions__id' => 'biginteger',
'Regions.id' => 'biginteger',
'id' => 'biginteger',
'Regions__country_id' => 'integer',
'Regions.country_id' => 'integer',
'country_id' => 'integer',
'Regions__region' => 'string',
'Regions.region' => 'string',
'region' => 'string'
],
'decorators' => (int) 0,
'executed' => false,
'hydrate' => true,
'buffered' => true,
'formatters' => (int) 0,
'mapReducers' => (int) 0,
'contain' => [],
'matching' => [],
'extraOptions' => [],
'repository' => object(App\Model\Table\RegionsTable) {}
}
$tourCount = (int) 12
$page = (int) 1
$possibleCountryResults = [
(int) 1 => (int) 41,
(int) 4 => (int) 2,
(int) 5 => (int) 1,
(int) 8 => (int) 3,
(int) 12 => (int) 1,
(int) 15 => (int) 1
]
$possibleTypeResults = [
'sg' => (int) 25,
'g' => (int) 14
]
$months = [
'2021-01' => 'January',
'2021-02' => 'February',
'2021-03' => 'March',
'2021-04' => 'April',
'2021-05' => 'May',
'2021-06' => 'June',
'2021-07' => 'July',
'2021-08' => 'August',
'2021-09' => 'September',
'2021-10' => 'October',
'2021-11' => 'November',
'2021-12' => 'December'
]
$monthCounts = [
'2020-04' => (int) 18,
'2020-05' => (int) 18,
'2020-06' => (int) 18,
'2020-07' => (int) 18,
'2020-08' => (int) 19,
'2020-09' => (int) 18,
'2020-10' => (int) 18,
'2020-03' => (int) 8,
'2020-11' => (int) 5,
'2019-03' => (int) 8,
'2019-04' => (int) 8,
'2019-05' => (int) 10,
'2019-06' => (int) 8,
'2019-07' => (int) 9,
'2019-08' => (int) 9,
'2019-09' => (int) 11,
'2019-10' => (int) 10,
'2019-11' => (int) 3,
'2019-12' => (int) 4,
'2020-01' => (int) 3,
'2020-02' => (int) 3,
'2018-11' => (int) 1,
'2018-12' => (int) 1,
'2020-12' => (int) 1,
'2019-01' => (int) 1,
'2019-02' => (int) 1
]
$related = null
include - APP/Template/Element/Components/related_tours_slider.ctp, line 9
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1240
Cake\View\View::_render() - CORE/src/View/View.php, line 1201
Cake\View\View::_renderElement() - CORE/src/View/View.php, line 1598
Cake\View\View::element() - CORE/src/View/View.php, line 706
include - APP/Template/Tours/view.ctp, line 51
Cake\View\View::_evaluate() - CORE/src/View/View.php, line 1240
Cake\View\View::_render() - CORE/src/View/View.php, line 1201
Cake\View\View::render() - CORE/src/View/View.php, line 803
Cake\Controller\Controller::render() - CORE/src/Controller/Controller.php, line 790
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 126
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 94
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 235
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 156
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88