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) 3696,
'tour_operator_id' => (int) 1,
'title' => 'Green Spain & Picos de Europa',
'slug' => 'green-spain-picos-de-europa',
'summary' => 'Green Spain, unspoilt costline, and the superb mountain scenery of the Picos de Europa. ',
'details' => '<p>A magnificent combination of sea and mountains. After riding along the coast, an easy, barely perceptible ascent leads us to the village of Potes at the very heart of the Picos de Europa. Alpine scenery and clean, unspoilt Atlantic beaches all in the same trip. The wonderful descent of the River Miera takes us down one of the least known and most beautiful valleys of Cantabria. One of our most popular trips with a great variety of scenery, villages, and hotels. </p>',
'level' => (int) 4,
'map' => 'https://www.google.com/maps/d/embed?mid=zuNUGuZle5gQ.k5YKn2NYKN98',
'guided_pricing_from' => null,
'guided_date_pricing' => null,
'guided_room_pricing' => null,
'self_guided_pricing_from' => (int) 860,
'self_guided_date_pricing' => '<p>High season 2017 runs from 1 July - 2 September. Tours beginning on 2 September are low season.</p>
',
'self_guided_room_pricing' => '<p>1 person in double share - 860 €</p>
<p>1 person in single room - 1130 €<br />
</p>
',
'supplements' => '<p>High season supplement - 135 €</p>
<p>Single high season supplement - 150 €</p>
',
'extras' => '<p>Bike hire - 99 €<br />
Tandem hire - 158 €<br />
E-bike hire 158 €</p>
',
'default_image' => '',
'price' => (float) 1000,
'price_details' => '<p> </p>
<p> </p>
',
'start_date' => object(Cake\I18n\FrozenDate) {},
'end_date' => object(Cake\I18n\FrozenDate) {},
'date_repeat_config' => null,
'personalise' => '',
'highlights' => '<ul>
<li>museum of the Altamira Caves</li>
<li>seaside village of Comillas</li>
<li>cable car trip at Fuente Dé</li>
</ul>
',
'changes' => '',
'included' => '',
'excluded' => '',
'is_published' => true,
'is_featured' => false,
'created_at' => object(Cake\I18n\FrozenTime) {},
'modified_at' => object(Cake\I18n\FrozenTime) {},
'start_sat' => true,
'start_sun' => true,
'start_mon' => true,
'start_any' => false,
'is_guided' => false,
'is_self_guided' => true,
'is_personalise' => false,
'num_nights' => (int) 7,
'distance' => (int) 162,
'mini_map' => 'northspain-2dcd0.gif',
'reference_url' => 'http://',
'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) 3696
],
'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) 3696,
'tour_operator_id' => (int) 1,
'title' => 'Green Spain & Picos de Europa',
'slug' => 'green-spain-picos-de-europa',
'summary' => 'Green Spain, unspoilt costline, and the superb mountain scenery of the Picos de Europa. ',
'details' => '<p>A magnificent combination of sea and mountains. After riding along the coast, an easy, barely perceptible ascent leads us to the village of Potes at the very heart of the Picos de Europa. Alpine scenery and clean, unspoilt Atlantic beaches all in the same trip. The wonderful descent of the River Miera takes us down one of the least known and most beautiful valleys of Cantabria. One of our most popular trips with a great variety of scenery, villages, and hotels. </p>',
'level' => (int) 4,
'map' => 'https://www.google.com/maps/d/embed?mid=zuNUGuZle5gQ.k5YKn2NYKN98',
'guided_pricing_from' => null,
'guided_date_pricing' => null,
'guided_room_pricing' => null,
'self_guided_pricing_from' => (int) 860,
'self_guided_date_pricing' => '<p>High season 2017 runs from 1 July - 2 September. Tours beginning on 2 September are low season.</p>
',
'self_guided_room_pricing' => '<p>1 person in double share - 860 €</p>
<p>1 person in single room - 1130 €<br />
</p>
',
'supplements' => '<p>High season supplement - 135 €</p>
<p>Single high season supplement - 150 €</p>
',
'extras' => '<p>Bike hire - 99 €<br />
Tandem hire - 158 €<br />
E-bike hire 158 €</p>
',
'default_image' => '',
'price' => (float) 1000,
'price_details' => '<p> </p>
<p> </p>
',
'start_date' => object(Cake\I18n\FrozenDate) {},
'end_date' => object(Cake\I18n\FrozenDate) {},
'date_repeat_config' => null,
'personalise' => '',
'highlights' => '<ul>
<li>museum of the Altamira Caves</li>
<li>seaside village of Comillas</li>
<li>cable car trip at Fuente Dé</li>
</ul>
',
'changes' => '',
'included' => '',
'excluded' => '',
'is_published' => true,
'is_featured' => false,
'created_at' => object(Cake\I18n\FrozenTime) {},
'modified_at' => object(Cake\I18n\FrozenTime) {},
'start_sat' => true,
'start_sun' => true,
'start_mon' => true,
'start_any' => false,
'is_guided' => false,
'is_self_guided' => true,
'is_personalise' => false,
'num_nights' => (int) 7,
'distance' => (int) 162,
'mini_map' => 'northspain-2dcd0.gif',
'reference_url' => 'http://',
'tour_extras' => [
(int) 0 => object(App\Model\Entity\TourExtra) {}
],
'tour_prices' => [
(int) 0 => object(App\Model\Entity\TourPrice) {},
(int) 1 => object(App\Model\Entity\TourPrice) {},
(int) 2 => object(App\Model\Entity\TourPrice) {}
],
'tour_countries' => [
(int) 0 => object(App\Model\Entity\TourCountry) {}
],
'tour_images' => [
(int) 0 => object(App\Model\Entity\TourImage) {},
(int) 1 => object(App\Model\Entity\TourImage) {},
(int) 2 => object(App\Model\Entity\TourImage) {},
(int) 3 => object(App\Model\Entity\TourImage) {},
(int) 4 => object(App\Model\Entity\TourImage) {},
(int) 5 => object(App\Model\Entity\TourImage) {},
(int) 6 => object(App\Model\Entity\TourImage) {},
(int) 7 => object(App\Model\Entity\TourImage) {}
],
'tour_faqs' => [
(int) 0 => object(App\Model\Entity\TourFaq) {},
(int) 1 => object(App\Model\Entity\TourFaq) {},
(int) 2 => object(App\Model\Entity\TourFaq) {},
(int) 3 => object(App\Model\Entity\TourFaq) {},
(int) 4 => object(App\Model\Entity\TourFaq) {},
(int) 5 => object(App\Model\Entity\TourFaq) {},
(int) 6 => object(App\Model\Entity\TourFaq) {},
(int) 7 => object(App\Model\Entity\TourFaq) {},
(int) 8 => object(App\Model\Entity\TourFaq) {},
(int) 9 => object(App\Model\Entity\TourFaq) {}
],
'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) {}
],
'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) 1869,
'tour_id' => (int) 3696,
'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) 3696
]
$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