Code |
Context$id = "615"
$content_news = array(
"ContentNews" => array(
"id" => "615",
"language_id" => "1",
"content_news_category_id" => "1",
"name" => "NKJSP na karlovarském Bikemaratonu",
"title" => "NKJSP na karlovarském Bikemaratonu",
"link_text" => null,
"date" => "2013-08-17",
"introduction" => "<p style="text-align: justify;">Tým Bezpečně na silnicích společně s krušnohorskou Horskou službou prezentovali v sobotu 17. srpna 2013 projekt "Na kole jen s přilbou" na karlovarském AM Bikemaratonu Škoda Auto, závodu ze seriálu "Kolo pro život".</p>",
"text" => "<p style="text-align: center;"><a href="/files/editor/file/Karlovy_Vary_026.jpg" target="_blank"><img width="560" height="420" src="/files/editor/image/Karlovy_Vary_026.jpg" alt="" /></a></p>
<p style="text-align: center;"> </p>",
"position" => null,
"active" => "1",
"link_is_ajax" => "0",
"created" => "2013-08-19 13:10:17",
"modified" => "2013-08-19 13:10:17"
),
"Language" => array(
"id" => "1",
"name" => "Česky",
"code" => "cze",
"created" => "2010-11-30 14:43:36",
"modified" => "2010-12-03 09:53:46"
),
"ContentNewsCategory" => array(
"id" => "1",
"parent_id" => "0",
"name" => "Aktuálně",
"all_news_text" => "Všechny novinky",
"hp_title" => null,
"hp_count" => "5",
"created" => "2015-04-28 06:35:52",
"modified" => "2018-10-15 19:41:22"
),
"ContentImage" => array(),
"User" => array(),
"ContentSlider" => array(),
"Tag" => array(),
"similar" => array(),
"Image" => false
)
$content_news['Image'] = $this->ContentNews->ContentImage->get_main("content_news", $content_news['ContentNews']['id']);
$this->set('image', 'https://www.tymbezpecnosti.cz/image/l/' . $content_news['ContentImage'][0]['id'] . '.jpg');
ContentNewsController::view() - APP/controllers/content_news_controller.php, line 161
Object::dispatchMethod() - CORE/cake/libs/object.php, line 119
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 226
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 193
[main] - APP/webroot/index.php, line 87