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) 3500,
'tour_operator_id' => (int) 1,
'title' => 'Green Valleys...',
'slug' => 'green-valleys',
'summary' => 'Visit the lush green valleys, hills and mountains of Northern Spain',
'details' => 'A trip which combines magnificent scenery, with more of an emphasis on the splendid inland scenery to be found in Cantabria. A great tour if you like the challenge of climbing from one superb valley to the next. Beautiful villages and great riding. Our two-night stopovers mean that you don't have to pack every day, but can still enjoy frequent changes of environment and a variety of round rides of different distances on those "free" days. Enjoy some of the most spectacular and lush landscapes to be found in Europe. ',
'level' => (int) 1,
'map' => 'https://maps.google.es/maps/ms?msid=200089626343022329347.0004d0ba4d7c9a4aea193&msa=0&ie=UTF8&t=p&ll=43.307192,-4.22699&spn=0.699527,1.702881&z=9&output=embed',
'guided_pricing_from' => null,
'guided_date_pricing' => '',
'guided_room_pricing' => '',
'self_guided_pricing_from' => (int) 860,
'self_guided_date_pricing' => '<p>High season: 1 July - 2 September<br />
Low Season: begins 2 September</p>
',
'self_guided_room_pricing' => '<p>double room share - 860 € (high season supplement - 135 €)</p>
<p>single room - 1130 € (high season supplement - 150 €)</p>
',
'supplements' => null,
'extras' => '<p>Bike hire - 99 €<br />
Tandem hire - 158 €<br />
E-bike hire - 158 €</p>
',
'default_image' => '4-db715.jpg',
'price' => (float) 1000,
'price_details' => '<p><strong>2017 prices</strong></p>
<p>1 person in double share - 860 €<br />
High season supplement - 135 €</p>
<p>1 person in single room - 1130 €<br />
Single high season supplement - 150 €<br />
Bike hire - 99 € / Tandem hire - 158 € / E-bike hire 158 €</p>
<p>High season 2017 runs from 1 July - 2 September. Tours beginning on 2 September are low season.</p>
',
'start_date' => object(Cake\I18n\FrozenDate) {},
'end_date' => object(Cake\I18n\FrozenDate) {},
'date_repeat_config' => null,
'personalise' => '',
'highlights' => '<ul>
<li>the famous prehistoric caves of Altamira </li>
<li>the little known Cantabrian mountains and villages</li>
<li>the Bay of Santander and its endless beaches</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) 318,
'mini_map' => 'northspain2-6a9b6.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) 3500
],
'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) 3500,
'tour_operator_id' => (int) 1,
'title' => 'Green Valleys...',
'slug' => 'green-valleys',
'summary' => 'Visit the lush green valleys, hills and mountains of Northern Spain',
'details' => 'A trip which combines magnificent scenery, with more of an emphasis on the splendid inland scenery to be found in Cantabria. A great tour if you like the challenge of climbing from one superb valley to the next. Beautiful villages and great riding. Our two-night stopovers mean that you don't have to pack every day, but can still enjoy frequent changes of environment and a variety of round rides of different distances on those "free" days. Enjoy some of the most spectacular and lush landscapes to be found in Europe. ',
'level' => (int) 1,
'map' => 'https://maps.google.es/maps/ms?msid=200089626343022329347.0004d0ba4d7c9a4aea193&msa=0&ie=UTF8&t=p&ll=43.307192,-4.22699&spn=0.699527,1.702881&z=9&output=embed',
'guided_pricing_from' => null,
'guided_date_pricing' => '',
'guided_room_pricing' => '',
'self_guided_pricing_from' => (int) 860,
'self_guided_date_pricing' => '<p>High season: 1 July - 2 September<br />
Low Season: begins 2 September</p>
',
'self_guided_room_pricing' => '<p>double room share - 860 € (high season supplement - 135 €)</p>
<p>single room - 1130 € (high season supplement - 150 €)</p>
',
'supplements' => null,
'extras' => '<p>Bike hire - 99 €<br />
Tandem hire - 158 €<br />
E-bike hire - 158 €</p>
',
'default_image' => '4-db715.jpg',
'price' => (float) 1000,
'price_details' => '<p><strong>2017 prices</strong></p>
<p>1 person in double share - 860 €<br />
High season supplement - 135 €</p>
<p>1 person in single room - 1130 €<br />
Single high season supplement - 150 €<br />
Bike hire - 99 € / Tandem hire - 158 € / E-bike hire 158 €</p>
<p>High season 2017 runs from 1 July - 2 September. Tours beginning on 2 September are low season.</p>
',
'start_date' => object(Cake\I18n\FrozenDate) {},
'end_date' => object(Cake\I18n\FrozenDate) {},
'date_repeat_config' => null,
'personalise' => '',
'highlights' => '<ul>
<li>the famous prehistoric caves of Altamira </li>
<li>the little known Cantabrian mountains and villages</li>
<li>the Bay of Santander and its endless beaches</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) 318,
'mini_map' => 'northspain2-6a9b6.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) {}
],
'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) {}
],
'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' => [
(int) 0 => object(App\Model\Entity\ToursI18n) {},
(int) 1 => object(App\Model\Entity\ToursI18n) {},
(int) 2 => object(App\Model\Entity\ToursI18n) {},
(int) 3 => object(App\Model\Entity\ToursI18n) {},
(int) 4 => object(App\Model\Entity\ToursI18n) {},
(int) 5 => object(App\Model\Entity\ToursI18n) {},
(int) 6 => object(App\Model\Entity\ToursI18n) {},
(int) 7 => object(App\Model\Entity\ToursI18n) {},
(int) 8 => object(App\Model\Entity\ToursI18n) {},
(int) 9 => object(App\Model\Entity\ToursI18n) {},
(int) 10 => object(App\Model\Entity\ToursI18n) {},
(int) 11 => object(App\Model\Entity\ToursI18n) {}
],
'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) 1500,
'tour_id' => (int) 3500,
'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) 3500
]
$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