/app/src/Modules/App/views/news/view.twig
{# <p class="news-carousel__video-time">1:03</p> #}
</picture>
</div>
{% endfor %}
{% for it in item.img %}
<div class="swiper-slide news-carousel__slide">
<picture class="news-carousel__pic">
<img src="{{ it }}" alt="" class="news-carousel__img">
</picture>
</div>
{% endfor %}
</div>
</div>
</div>
<div class="news-content">
{{ item.text|raw }}
</div>
<p class="news-editor">{{ t.t('editor') }}: {{ t.t(item.author.name) }}</p>
<div class="news-bottom">
<div class="news-bottom__left">
<div class="bottom-button @@className" data-b_modal-open="modal-app-comment">
<img src="/img/common/comments.svg" alt="">
<span>{{ item.comments_num }}</span>
</div>
<div class="bottom-button @@className" data-b_modal-open="modal-app-comment">
<img src="/img/common/like.svg" alt="">
<span>{{ item.likes_num }}</span>
</div>
</div>
<div class="news-bottom__right">
<p class="news-bottom__date">{{ item.publishDate|date('F j, Y') }}</p>
<div class="news-bottom-share" data-b_modal-open="modal-share">
<img src="/img/common/share.svg" alt="">
</div>
</div>
</div>
<hr class="news-divider">
Arguments
"An exception has been thrown during the rendering of a template ("Phalcon\Translate\Adapter\AbstractAdapter::t(): Passing null to parameter #1 ($translateKey) of type string is deprecated")."
[internal]
Arguments
"/app/src/Modules/App/views/news/view.twig"
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
true
[internal]
Arguments
array:2 [
".twig" => Library\Twig\Twig {#262}
".phtml" => Phalcon\Mvc\View\Engine\Php {#284}
]
"news/view"
true
[internal]
Arguments
Modules\App\Controllers\NewsController {#208}
"viewAction"
array:2 [
"lang" => "ru"
"id" => "4089"
]
/app/vendor/twig/twig/src/Extension/CoreExtension.php
if ($ignoreStrictCheck || !$env->isStrictVariables()) {
return;
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()"/"has%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), $lineno, $source);
}
if ($isDefinedTest) {
return true;
}
if ($sandboxed) {
$env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
$ret = $object->$method(...$arguments);
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
return;
}
throw $e;
}
return $ret;
}
/**
* Returns the values from a single column in the input array.
*
* <pre>
* {% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}
*
* {% set fruits = items|column('fruit') %}
*
* {# fruits now contains ['apple', 'orange'] #}
* </pre>
Arguments
"Phalcon\Translate\Adapter\AbstractAdapter::t(): Passing null to parameter #1 ($translateKey) of type string is deprecated"
/app/vendor/twig/twig/src/Extension/CoreExtension.php
if ($ignoreStrictCheck || !$env->isStrictVariables()) {
return;
}
throw new RuntimeError(sprintf('Neither the property "%1$s" nor one of the methods "%1$s()", "get%1$s()"/"is%1$s()"/"has%1$s()" or "__call()" exist and have public access in class "%2$s".', $item, $class), $lineno, $source);
}
if ($isDefinedTest) {
return true;
}
if ($sandboxed) {
$env->getExtension(SandboxExtension::class)->checkMethodAllowed($object, $method, $lineno, $source);
}
// Some objects throw exceptions when they have __call, and the method we try
// to call is not supported. If ignoreStrictCheck is true, we should return null.
try {
$ret = $object->$method(...$arguments);
} catch (\BadMethodCallException $e) {
if ($call && ($ignoreStrictCheck || !$env->isStrictVariables())) {
return;
}
throw $e;
}
return $ret;
}
/**
* Returns the values from a single column in the input array.
*
* <pre>
* {% set items = [{ 'fruit' : 'apple'}, {'fruit' : 'orange' }] %}
*
* {% set fruits = items|column('fruit') %}
*
* {# fruits now contains ['apple', 'orange'] #}
* </pre>
Arguments
/app/cache/dd/dd39faac700062d66e96c7cde2e2ea58.php
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['it'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
echo " </div>
</div>
</div>
<div class=\"news-content\">
";
// line 84
echo twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "text", [], "any", false, false, false, 84);
echo "
</div>
<p class=\"news-editor\">";
// line 87
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["t"] ?? null), "t", ["editor"], "method", false, false, false, 87), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["t"] ?? null), "t", [twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "author", [], "any", false, false, false, 87), "name", [], "any", false, false, false, 87)], "method", false, false, false, 87), "html", null, true);
echo "</p>
<div class=\"news-bottom\">
<div class=\"news-bottom__left\">
<div class=\"bottom-button @@className\" data-b_modal-open=\"modal-app-comment\">
<img src=\"/img/common/comments.svg\" alt=\"\">
<span>";
// line 93
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "comments_num", [], "any", false, false, false, 93), "html", null, true);
echo "</span>
</div>
<div class=\"bottom-button @@className\" data-b_modal-open=\"modal-app-comment\">
<img src=\"/img/common/like.svg\" alt=\"\">
<span>";
// line 97
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "likes_num", [], "any", false, false, false, 97), "html", null, true);
echo "</span>
</div>
</div>
<div class=\"news-bottom__right\">
Arguments
Library\Twig\Twig\Environment {#276}
Twig\Source {#344}
Phalcon\Translate\Adapter\NativeArray {#288}
"t"
array:1 [
0 => null
]
"method"
false
false
false
87
/app/vendor/twig/twig/src/Template.php
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
// this is mostly useful for \Twig\Error\LoaderError exceptions
// see \Twig\Error\LoaderError
if (-1 === $e->getTemplateLine()) {
$e->guess();
}
throw $e;
} catch (\Throwable $e) {
$e = new RuntimeError(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $this->getSourceContext(), $e);
$e->guess();
throw $e;
}
}
Arguments
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
[]
/app/vendor/twig/twig/src/Template.php
{
return $this;
}
/**
* Returns all blocks.
*
* This method is for internal use only and should never be called
* directly.
*
* @return array An array of blocks
*/
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
Arguments
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
[]
/app/vendor/twig/twig/src/Template.php
public function getBlocks()
{
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
if ($this->env->isDebug()) {
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
throw $e;
}
return ob_get_clean();
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
Arguments
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
/app/vendor/twig/twig/src/TemplateWrapper.php
final class TemplateWrapper
{
private $env;
private $template;
/**
* This method is for internal use only and should never be called
* directly (use Twig\Environment::load() instead).
*
* @internal
*/
public function __construct(Environment $env, Template $template)
{
$this->env = $env;
$this->template = $template;
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
$this->template->display($context, \func_get_args()[1] ?? []);
}
public function hasBlock(string $name, array $context = []): bool
{
return $this->template->hasBlock($name, $context);
}
/**
* @return string[] An array of defined template block names
*/
public function getBlockNames(array $context = []): array
{
return $this->template->getBlockNames($context);
Arguments
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
/app/vendor/twig/twig/src/Environment.php
*/
public function getTemplateClass(string $name, int $index = null): string
{
$key = $this->getLoader()->getCacheKey($name).$this->optionsHash;
return $this->templateClassPrefix.hash(\PHP_VERSION_ID < 80100 ? 'sha256' : 'xxh128', $key).(null === $index ? '' : '___'.$index);
}
/**
* Renders a template.
*
* @param string|TemplateWrapper $name The template name
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
* @param string|TemplateWrapper $name The template name
*
* @throws LoaderError When the template cannot be found
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function display($name, array $context = []): void
{
$this->load($name)->display($context);
}
/**
* Loads a template.
*
* @param string|TemplateWrapper $name The template name
Arguments
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
/app/src/Library/Twig/Twig.php
* @param boolean $mustClean
*/
public function render(string $path, $params, bool $mustClean = false): void
{
$view = $this->view;
if (!isset($params['content'])) {
$params['content'] = $view->getContent();
}
if (!isset($params['view'])) {
$params['view'] = $view;
}
$relativePath = str_replace(
$view->getViewsDir(),
'',
$path
);
$content = $this->twig->render($relativePath, $params);
if ($mustClean) {
$this->view->setContent($content);
} else {
echo $content;
}
}
public function getTwig() : Environment
{
return $this->twig;
}
}
Arguments
"news/view.twig"
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
[internal]
Arguments
"/app/src/Modules/App/views/news/view.twig"
array:30 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
"languages" => array:1 [
"items" => array:21 [
"en" => 1
"ru" => 2
"de" => 4
"fr" => 5
"es" => 7
"ar" => 10
"it" => 11
"ja" => 12
"ko" => 13
"ms" => 14
"nl" => 15
"pt" => 16
"tr" => 17
"el" => 18
"zh" => 19
"hi" => 20
"id" => 21
"kk" => 25
"ky" => 28
"hy" => 29
"uk" => 32
]
]
"currentLanguage" => "ru"
"content" => ""
"view" => Phalcon\Mvc\View {#210}
]
true
[internal]
Arguments
array:2 [
".twig" => Library\Twig\Twig {#262}
".phtml" => Phalcon\Mvc\View\Engine\Php {#284}
]
"news/view"
true
/app/src/Framework/ControllerBase.php
}
protected function getLanguages(): array
{
return $this->locale->availableLanguages();
}
protected function render(array $path, array $params = null): View|\Phalcon\Mvc\ViewInterface|bool
{
$_lng = $this->lang;
$params = $params ?? [];
$params['languages']['items'] = $this->getLanguages();
$params['currentLanguage'] = $_lng;
$this->view->setVars($params);
return $this->view->render(...$path);
}
public function beforeExecuteRoute(Dispatcher $dispatcher): bool
{
$controllerName = $dispatcher->getControllerName();
// Get the current identity
$auth = $this->getDI()->get('auth');
$token = $this->request->getHeader("Authorization");
if ($token == '') {
$this->CURRENT_USER_ID = 0;
} else {
list($type, $BearerToken) = explode(" ", $token, 2);
if (!$type || stripos($type, 'Bearer') !== 0) {
$this->CURRENT_USER_ID = 0;
} else {
if ($BearerToken == '') {
$this->CURRENT_USER_ID = -2;
} else {
Arguments
/app/src/Framework/ControllerBase.php
{
$controllerName = $controllerName ?? $this->dispatcher->getControllerName();
$actionName = $actionName ?? $this->dispatcher->getActionName();
$this->setDefaultRenderParams($params);
return $this->render([
$controllerName,
$actionName,
],
$params
);
}
public function defaultRender(array $params = []): View|bool
{
$this->setDefaultRenderParams($params);
return $this->render([
$this->dispatcher->getControllerName(),
$this->dispatcher->getActionName(),
],
$params
);
}
protected function getLanguages(): array
{
return $this->locale->availableLanguages();
}
protected function render(array $path, array $params = null): View|\Phalcon\Mvc\ViewInterface|bool
{
$_lng = $this->lang;
$params = $params ?? [];
$params['languages']['items'] = $this->getLanguages();
$params['currentLanguage'] = $_lng;
Arguments
/app/src/Modules/App/src/Controllers/NewsController.php
'user' => [
'id' => $user->id,
'first_name' => $user->first_name,
'last_name' => $user->last_name,
'nickname' => $user->nickname,
'avatar_link' => $user->avatar_link,
],
];
}
}
if ($ajax != 0) {
$this->response->setJsonContent(['items' => $comments, 'totalPages' => ceil($countComments / $limit)]);
return $this->response;
}
$recently_viewed = $this->get_news(10, 0, 0, 'dateof DESC', [], $this->get_viewed('news'));
return $this->defaultRender([
'comment_news' => $this->get_last_news(false, 10, 'dateof DESC'),
'item' => $item,
'topic' => $topic,
'comments' => $comments,
'recently_viewed' => $recently_viewed,
'is_preview' => true
]);
}
protected function get_news($limit = 10, $offset = 0, $topic_id = 0, $sort_by = 'dateof DESC', $paramsFilter = [], $viewedIDs = [])
{
$filters = '';
$binds = [];
if (!empty($paramsFilter['query'])) {
$filters .= " AND (title LIKE '%" . $paramsFilter['query'] . "%' OR text LIKE '%" . $paramsFilter['query'] . "%')";
}
$topic_cond = ($topic_id == 0) ? '' : ' AND topic_id = ' . $topic_id;
$viewed_cond = '';
if (is_array($viewedIDs) && count($viewedIDs) > 0) {
Arguments
array:26 [
"comment_news" => array:10 [
0 => array:8 [
"id" => 60120
"title" => "Audi R8 goes out of production for good"
"publishDate" => "2024-03-26 14:30:00"
"url" => "/ru/news/view/60120.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/80/gPv8i0NqG9ns.jpg"
"images_num" => 5
"videos_num" => 1
"comments_num" => 8
]
1 => array:8 [
"id" => 60052
"title" => "BMW ushers in the Vision Neue Klasse X"
"publishDate" => "2024-03-22 14:00:00"
"url" => "/ru/news/view/60052.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/39/06/Tnxlgxa8kwhq.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 7
]
2 => array:8 [
"id" => 60068
"title" => "Ferrari 296 Spider dons Mansory wheels and body kit"
"publishDate" => "2024-03-23 12:30:00"
"url" => "/ru/news/view/60068.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/21/zIkcXDlZUA9h.jpg"
"images_num" => 10
"videos_num" => 0
"comments_num" => 6
]
3 => array:8 [
"id" => 60070
"title" => "52-year-old Chevy K5 Blazer can be yours for eye-watering $361k"
"publishDate" => "2024-03-23 13:00:00"
"url" => "/ru/news/view/60070.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/35/xh3wISu0Sqic.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 4
]
4 => array:8 [
"id" => 60136
"title" => "Geely Galaxy E5 announced"
"publishDate" => "2024-03-27 16:30:00"
"url" => "/ru/news/view/60136.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/46/08/2qrBWJtFRdT7.jpg"
"images_num" => 9
"videos_num" => 1
"comments_num" => 2
]
5 => array:8 [
"id" => 60116
"title" => "Audi vows to ditch the confusing two-digit naming scheme"
"publishDate" => "2024-03-26 13:30:00"
"url" => "/ru/news/view/60116.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/44/57/PgMxco5lnsl9.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
6 => array:8 [
"id" => 60102
"title" => "Meet the new Zeekr Mix, a minivan almost ready for launch"
"publishDate" => "2024-03-25 16:30:00"
"url" => "/ru/news/view/60102.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/43/49/zPH2QNkQBcOI.jpg"
"images_num" => 4
"videos_num" => 0
"comments_num" => 2
]
7 => array:8 [
"id" => 60080
"title" => "Check out a salvaged BMW 325i (E30) turned into a paragon of restomodding"
"publishDate" => "2024-03-24 13:00:00"
"url" => "/ru/news/view/60080.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/41/23/XlEHmKZhi2fo.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 2
]
8 => array:8 [
"id" => 60066
"title" => "Drag Race: Fisker Ocean vs. Tesla Model Y Performance"
"publishDate" => "2024-03-23 12:00:00"
"url" => "/ru/news/view/60066.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/40/07/HdL7aFdKmdTY.jpg"
"images_num" => 4
"videos_num" => 1
"comments_num" => 2
]
9 => array:8 [
"id" => 60160
"title" => "Another Audi RS 6 Avant morphs into a 1,050-PS supercar"
"publishDate" => "2024-03-28 14:00:00"
"url" => "/ru/news/view/60160.html"
"img" => "https://www.formacar.com/storage/images_news/00/44/47/79/GeUWHAGN9Ac5.jpg"
"images_num" => 10
"videos_num" => 1
"comments_num" => 1
]
]
"item" => Modules\News\Models\News {#269}
"topic" => Modules\News\Models\NewsTopics {#267}
"comments" => []
"recently_viewed" => []
"is_preview" => true
"is_mobile" => false
"page_title" => "Formacar: Honda Insight – больше никаких тайн!"
"shop_url" => "https://shop.formacar.com"
"assets" => Phalcon\Assets\Manager {#291}
"_me" => null
"_cdn" => "https://www.formacar.com"
"_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
"session_id" => "c99577c59168a98f51aca4d8669b3487"
"t" => Phalcon\Translate\Adapter\NativeArray {#288}
"_uperm" => Models\RolePermission {#290}
"lang" => "en"
"langs" => array:16 [
0 => array:4 [
"id" => 1
"skey" => "en"
"title" => "English"
"link" => "https://www.formacar.com/en/news/view/4089.html"
]
1 => array:4 [
"id" => 4
"skey" => "de"
"title" => "Deutsch"
"link" => "https://www.formacar.com/de/news/view/4089.html"
]
2 => array:4 [
"id" => 5
"skey" => "fr"
"title" => "France"
"link" => "https://www.formacar.com/fr/news/view/4089.html"
]
3 => array:4 [
"id" => 7
"skey" => "es"
"title" => "Español"
"link" => "https://www.formacar.com/es/news/view/4089.html"
]
4 => array:4 [
"id" => 10
"skey" => "ar"
"title" => "العربية"
"link" => "https://www.formacar.com/ar/news/view/4089.html"
]
5 => array:4 [
"id" => 11
"skey" => "it"
"title" => "Italiano"
"link" => "https://www.formacar.com/it/news/view/4089.html"
]
6 => array:4 [
"id" => 12
"skey" => "ja"
"title" => "日本語"
"link" => "https://www.formacar.com/ja/news/view/4089.html"
]
7 => array:4 [
"id" => 13
"skey" => "ko"
"title" => "한국의"
"link" => "https://www.formacar.com/ko/news/view/4089.html"
]
8 => array:4 [
"id" => 14
"skey" => "ms"
"title" => "Malay"
"link" => "https://www.formacar.com/ms/news/view/4089.html"
]
9 => array:4 [
"id" => 15
"skey" => "nl"
"title" => "Nederlands"
"link" => "https://www.formacar.com/nl/news/view/4089.html"
]
10 => array:4 [
"id" => 16
"skey" => "pt"
"title" => "Português"
"link" => "https://www.formacar.com/pt/news/view/4089.html"
]
11 => array:4 [
"id" => 17
"skey" => "tr"
"title" => "Türkçe"
"link" => "https://www.formacar.com/tr/news/view/4089.html"
]
12 => array:4 [
"id" => 18
"skey" => "el"
"title" => "Ελληνικά"
"link" => "https://www.formacar.com/el/news/view/4089.html"
]
13 => array:4 [
"id" => 19
"skey" => "zh"
"title" => "汉语"
"link" => "https://www.formacar.com/zh/news/view/4089.html"
]
14 => array:4 [
"id" => 20
"skey" => "hi"
"title" => "हिंदी"
"link" => "https://www.formacar.com/hi/news/view/4089.html"
]
15 => array:4 [
"id" => 21
"skey" => "id"
"title" => "Indonesian"
"link" => "https://www.formacar.com/id/news/view/4089.html"
]
]
"current_lang" => Models\Langs {#250}
"lang_id" => 2
"home_url" => "https://www.formacar.com"
"search_story" => []
"current_section" => "/news/"
"current_sub_section" => "/home/"
"banners_links" => array:2 [
"crypto" => "https://t.me/formacarcrypto"
"scl" => "https://scl-performance.com/ru"
]
"_domain" => "www.formacar.com"
]
[internal]
Arguments
Modules\App\Controllers\NewsController {#208}
"viewAction"
array:2 [
"lang" => "ru"
"id" => "4089"
]
/app/src/Framework/App.php
*/
protected function loadModules(Builder $builder): void
{
$this->registerModules($builder->modules()->toArray());
}
/**
* Terminate application
* @throws Throwable
*/
public function terminate()
{
if ($this->debug() && class_exists(Run::class)) {
//new \Whoops\Provider\Phalcon\WhoopsServiceProvider();
$this->builder->whoops();
}
try {
$response = $this->handle(
$this->builder->urlPath()
);
} catch (Throwable $throwable) {
if ($this->debug()) {
if (class_exists(Run::class) && str_starts_with($this->request->getURI(), '/api/')) {
$this->builder->whoopsApi();
}
throw $throwable;
}
$response = $this->handle('/404');
}
//echo $response->getContent();
$response->send();
if (function_exists('\fastcgi_finish_request')) {
fastcgi_finish_request();
}
die;
Arguments
"/ru/news/view/4089.html"
/app/web/index.php
<?php
//var_dump($_REQUEST);exit();
error_reporting(E_ALL);
ini_set('display_errors', 1);
define('BASE_PATH', dirname(__DIR__));
define('PUBLIC_PATH', __DIR__);
include_once BASE_PATH . '/vendor/autoload.php';
$builder = new \Framework\Builder(BASE_PATH);
$builder->app()->terminate();