Code |
Context$id = "609"
$content_news = array(
"ContentNews" => array(
"id" => "609",
"language_id" => "1",
"content_news_category_id" => "1",
"name" => "Další 2 dny v Lednicko-Valtickém areálu",
"title" => "Další 2 dny v Lednicko-Valtickém areálu",
"link_text" => null,
"date" => "2013-08-14",
"introduction" => "<p style="text-align: justify;">V pondělí 12.8. a v úterý 13.8. vyrazily cyklo-hlídky projektu "Na kole jen s přilbou" již podruhé do Lednicko-Valtického areálu.</p>",
"text" => "<p style="text-align: justify;">Komunikovali s cyklisty na oblíbených odpočinkových místech jako například Svatý Hubert, 3 Grácie, Janův Hrad a zámek Lednice.</p>
<p style="text-align: center;"><a href="/files/editor/file/Valtice_podruhe_036.jpg" target="_blank"><img width="550" height="413" src="/files/editor/image/Valtice_podruhe_036.jpg" alt="" /></a></p>
<p style="text-align: center;"> </p>",
"position" => null,
"active" => "1",
"link_is_ajax" => "0",
"created" => "2013-08-15 12:35:58",
"modified" => "2013-08-15 12:35:58"
),
"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