Twig \ Error \ LoaderError
Unable to find template "page_templates/action_ru.twig" (looked into: /app/src/Modules/App/views) in "index/page.twig" at line 4. Twig\Error\LoaderError thrown with message "Unable to find template "page_templates/action_ru.twig" (looked into: /app/src/Modules/App/views) in "index/page.twig" at line 4." Stacktrace: #21 Twig\Error\LoaderError in /app/vendor/twig/twig/src/Loader/FilesystemLoader.php:227 #20 Twig\Loader\FilesystemLoader:findTemplate in /app/vendor/twig/twig/src/Loader/FilesystemLoader.php:131 #19 Twig\Loader\FilesystemLoader:getCacheKey in /app/vendor/twig/twig/src/Environment.php:264 #18 Twig\Environment:getTemplateClass in /app/vendor/twig/twig/src/Template.php:319 #17 Twig\Template:loadTemplate in /app/cache/2c/2cfd32898c3255ce783a0c17699eaef0.php:45 #16 __TwigTemplate_96e1424fa7915d51bb2d35bfba86b270:doDisplay in /app/vendor/twig/twig/src/Template.php:394 #15 Twig\Template:displayWithErrorHandling in /app/vendor/twig/twig/src/Template.php:367 #14 Twig\Template:display in /app/vendor/twig/twig/src/Template.php:379 #13 Twig\Template:render in /app/vendor/twig/twig/src/TemplateWrapper.php:38 #12 Twig\TemplateWrapper:render in /app/vendor/twig/twig/src/Environment.php:280 #11 Twig\Environment:render in /app/src/Library/Twig/Twig.php:263 #10 Library\Twig\Twig:render in [internal]:0 #9 Phalcon\Mvc\View:engineRender in [internal]:0 #8 Phalcon\Mvc\View:processRender in [internal]:0 #7 Phalcon\Mvc\View:render in /app/src/Framework/ControllerBase.php:841 #6 Framework\ControllerBase:render in /app/src/Framework/ControllerBase.php:817 #5 Framework\ControllerBase:defaultRender in /app/src/Modules/App/src/Controllers/IndexController.php:149 #4 Modules\App\Controllers\IndexController:pageAction in [internal]:0 #3 Phalcon\Dispatcher\AbstractDispatcher:callActionMethod in [internal]:0 #2 Phalcon\Dispatcher\AbstractDispatcher:dispatch in [internal]:0 #1 Phalcon\Mvc\Application:handle in /app/src/Framework/App.php:59 #0 Framework\App:terminate in /app/web/index.php:13
Stack frames (22)
21
Twig\Error\LoaderError
/vendor/twig/twig/src/Loader/FilesystemLoader.php227
20
Twig\Loader\FilesystemLoader findTemplate
/vendor/twig/twig/src/Loader/FilesystemLoader.php131
19
Twig\Loader\FilesystemLoader getCacheKey
/vendor/twig/twig/src/Environment.php264
18
Twig\Environment getTemplateClass
/vendor/twig/twig/src/Template.php319
17
Twig\Template loadTemplate
/cache/2c/2cfd32898c3255ce783a0c17699eaef0.php45
16
__TwigTemplate_96e1424fa7915d51bb2d35bfba86b270 doDisplay
/vendor/twig/twig/src/Template.php394
15
Twig\Template displayWithErrorHandling
/vendor/twig/twig/src/Template.php367
14
Twig\Template display
/vendor/twig/twig/src/Template.php379
13
Twig\Template render
/vendor/twig/twig/src/TemplateWrapper.php38
12
Twig\TemplateWrapper render
/vendor/twig/twig/src/Environment.php280
11
Twig\Environment render
/src/Library/Twig/Twig.php263
10
Library\Twig\Twig render
[internal]0
9
Phalcon\Mvc\View engineRender
[internal]0
8
Phalcon\Mvc\View processRender
[internal]0
7
Phalcon\Mvc\View render
/src/Framework/ControllerBase.php841
6
Framework\ControllerBase render
/src/Framework/ControllerBase.php817
5
Framework\ControllerBase defaultRender
/src/Modules/App/src/Controllers/IndexController.php149
4
Modules\App\Controllers\IndexController pageAction
[internal]0
3
Phalcon\Dispatcher\AbstractDispatcher callActionMethod
[internal]0
2
Phalcon\Dispatcher\AbstractDispatcher dispatch
[internal]0
1
Phalcon\Mvc\Application handle
/src/Framework/App.php59
0
Framework\App terminate
/web/index.php13
/app/vendor/twig/twig/src/Loader/FilesystemLoader.php
            if (!$this->isAbsolutePath($path)) {
                $path = $this->rootPath.$path;
            }
 
            if (is_file($path.'/'.$shortname)) {
                if (false !== $realpath = realpath($path.'/'.$shortname)) {
                    return $this->cache[$name] = $realpath;
                }
 
                return $this->cache[$name] = $path.'/'.$shortname;
            }
        }
 
        $this->errorCache[$name] = sprintf('Unable to find template "%s" (looked into: %s).', $name, implode(', ', $this->paths[$namespace]));
 
        if (!$throw) {
            return null;
        }
 
        throw new LoaderError($this->errorCache[$name]);
    }
 
    private function normalizeName(string $name): string
    {
        return preg_replace('#/{2,}#', '/', str_replace('\\', '/', $name));
    }
 
    private function parseName(string $name, string $default = self::MAIN_NAMESPACE): array
    {
        if (isset($name[0]) && '@' == $name[0]) {
            if (false === $pos = strpos($name, '/')) {
                throw new LoaderError(sprintf('Malformed namespaced template name "%s" (expecting "@namespace/template_name").', $name));
            }
 
            $namespace = substr($name, 1, $pos - 1);
            $shortname = substr($name, $pos + 1);
 
            return [$namespace, $shortname];
        }
 
Arguments
  1. "Unable to find template "page_templates/action_ru.twig" (looked into: /app/src/Modules/App/views) in "index/page.twig" at line 4."
    
/app/vendor/twig/twig/src/Loader/FilesystemLoader.php
 
        if (!isset($this->paths[$namespace])) {
            $this->paths[$namespace][] = $path;
        } else {
            array_unshift($this->paths[$namespace], $path);
        }
    }
 
    public function getSourceContext(string $name): Source
    {
        if (null === $path = $this->findTemplate($name)) {
            return new Source('', $name, '');
        }
 
        return new Source(file_get_contents($path), $name, $path);
    }
 
    public function getCacheKey(string $name): string
    {
        if (null === $path = $this->findTemplate($name)) {
            return '';
        }
        $len = \strlen($this->rootPath);
        if (0 === strncmp($this->rootPath, $path, $len)) {
            return substr($path, $len);
        }
 
        return $path;
    }
 
    /**
     * @return bool
     */
    public function exists(string $name)
    {
        $name = $this->normalizeName($name);
 
        if (isset($this->cache[$name])) {
            return true;
        }
Arguments
  1. "page_templates/action_ru.twig"
    
/app/vendor/twig/twig/src/Environment.php
    /**
     * Gets the template class associated with the given string.
     *
     * The generated template class is based on the following parameters:
     *
     *  * The cache key for the given template;
     *  * The currently enabled extensions;
     *  * Whether the Twig C extension is available or not;
     *  * PHP version;
     *  * Twig version;
     *  * Options with what environment was created.
     *
     * @param string   $name  The name for which to calculate the template class name
     * @param int|null $index The index if it is an embedded template
     *
     * @internal
     */
    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.
Arguments
  1. "page_templates/action_ru.twig"
    
/app/vendor/twig/twig/src/Template.php
     * @return Template|TemplateWrapper
     */
    protected function loadTemplate($template, $templateName = null, $line = null, $index = null)
    {
        try {
            if (\is_array($template)) {
                return $this->env->resolveTemplate($template);
            }
 
            if ($template instanceof self || $template instanceof TemplateWrapper) {
                return $template;
            }
 
            if ($template === $this->getTemplateName()) {
                $class = static::class;
                if (false !== $pos = strrpos($class, '___', -1)) {
                    $class = substr($class, 0, $pos);
                }
            } else {
                $class = $this->env->getTemplateClass($template);
            }
 
            return $this->env->loadTemplate($class, $template, $index);
        } catch (Error $e) {
            if (!$e->getSourceContext()) {
                $e->setSourceContext($templateName ? new Source('', $templateName) : $this->getSourceContext());
            }
 
            if ($e->getTemplateLine() > 0) {
                throw $e;
            }
 
            if (!$line) {
                $e->guess();
            } else {
                $e->setTemplateLine($line);
            }
 
            throw $e;
        }
Arguments
  1. "page_templates/action_ru.twig"
    
/app/cache/2c/2cfd32898c3255ce783a0c17699eaef0.php
 
        $this->parent = false;
 
        $this->blocks = [
        ];
    }
 
    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        $this->loadTemplate("parts/header.twig", "index/page.twig", 1)->display($context);
        // line 2
        echo "
";
        // line 3
        if (($context["is_custom"] ?? null)) {
            // line 4
            echo "    ";
            $this->loadTemplate(($context["template_path"] ?? null), "index/page.twig", 4)->display($context);
        } else {
            // line 6
            echo "
";
        }
        // line 8
        echo "
";
        // line 9
        $this->loadTemplate("parts/footer.twig", "index/page.twig", 9)->display($context);
    }
 
    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "index/page.twig";
    }
 
Arguments
  1. "page_templates/action_ru.twig"
    
  2. "index/page.twig"
    
  3. 4
    
/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
  1. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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}
    ]
    
  2. []
    
/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
  1. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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}
    ]
    
  2. []
    
/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
  1. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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
  1. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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
  1. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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
  1. "index/page.twig"
    
  2. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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
  1. "/app/src/Modules/App/views/index/page.twig"
    
  2. array:28 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "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}
    ]
    
  3. true
    
[internal]
Arguments
  1. array:2 [
      ".twig" => Library\Twig\Twig {#243}
      ".phtml" => Phalcon\Mvc\View\Engine\Php {#256}
    ]
    
  2. "index/page"
    
  3. true
    
[internal]
Arguments
  1. "index"
    
  2. "page"
    
  3. []
    
/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
  1. "index"
    
  2. "page"
    
/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
  1. null
    
  2. null
    
/app/src/Modules/App/src/Controllers/IndexController.php
        $template = Template::findFirstById($page->template_id);
 
        if ($template && $template->id != 14) {
            $varIsCustomTemplate = true;
            $varTemplatePath = 'page_templates/' . str_ireplace('.tpl', '.twig', $template->filename);
        }
        if (in_array($pageUrl, $this->custom_templates)) {
            $varIsCustomTemplate = true;
            $varTemplatePath = 'page_templates/' . $pageUrl . '.twig';
        }
 
        $this->page_title = $this->company_name . ': ' . $t->t(\htmlspecialchars_decode($page->title));
 
        return $this->defaultRender([
            'lang' => $this->locale->currentLang(),
            'langs' => $this->get_langs(),
            'is_custom' => $varIsCustomTemplate,
            'template_path' => $varTemplatePath,
            'title' => \htmlspecialchars_decode($page->title),
            'text' => \htmlspecialchars_decode($page->text),
        ]);
    }
 
    public function feedAction()
    {
        $t = $this->locale->getTranslation();
        $ID = $this->dispatcher->getParam('id');
        $this->page_title = $t->t('Feed') . ' - ' . $this->company_name;
        $this->current_section = '/feed/';
        $page = $this->request->getQuery('p', 'int', 1);
        $ajax = $this->request->getQuery('ajax', 'int', 0);
        $limit = 8;
 
        $posts = [];
        if ($ajax != 0) {
            $offset = ($page == 1) ? 0 : ($page - 1) * $limit;
            $posts = $this->get_posts($limit, $offset);
            $items = [
                'items' => $posts
            ];
Arguments
  1. array:24 [
      "lang" => "en"
      "langs" => array:16 [
        0 => array:4 [
          "id" => 1
          "skey" => "en"
          "title" => "English"
          "link" => "https://www.formacar.com/en/action.html"
        ]
        1 => array:4 [
          "id" => 4
          "skey" => "de"
          "title" => "Deutsch"
          "link" => "https://www.formacar.com/de/action.html"
        ]
        2 => array:4 [
          "id" => 5
          "skey" => "fr"
          "title" => "France"
          "link" => "https://www.formacar.com/fr/action.html"
        ]
        3 => array:4 [
          "id" => 7
          "skey" => "es"
          "title" => "Español"
          "link" => "https://www.formacar.com/es/action.html"
        ]
        4 => array:4 [
          "id" => 10
          "skey" => "ar"
          "title" => "العربية"
          "link" => "https://www.formacar.com/ar/action.html"
        ]
        5 => array:4 [
          "id" => 11
          "skey" => "it"
          "title" => "Italiano"
          "link" => "https://www.formacar.com/it/action.html"
        ]
        6 => array:4 [
          "id" => 12
          "skey" => "ja"
          "title" => "日本語"
          "link" => "https://www.formacar.com/ja/action.html"
        ]
        7 => array:4 [
          "id" => 13
          "skey" => "ko"
          "title" => "한국의"
          "link" => "https://www.formacar.com/ko/action.html"
        ]
        8 => array:4 [
          "id" => 14
          "skey" => "ms"
          "title" => "Malay"
          "link" => "https://www.formacar.com/ms/action.html"
        ]
        9 => array:4 [
          "id" => 15
          "skey" => "nl"
          "title" => "Nederlands"
          "link" => "https://www.formacar.com/nl/action.html"
        ]
        10 => array:4 [
          "id" => 16
          "skey" => "pt"
          "title" => "Português"
          "link" => "https://www.formacar.com/pt/action.html"
        ]
        11 => array:4 [
          "id" => 17
          "skey" => "tr"
          "title" => "Türkçe"
          "link" => "https://www.formacar.com/tr/action.html"
        ]
        12 => array:4 [
          "id" => 18
          "skey" => "el"
          "title" => "Ελληνικά"
          "link" => "https://www.formacar.com/el/action.html"
        ]
        13 => array:4 [
          "id" => 19
          "skey" => "zh"
          "title" => "汉语"
          "link" => "https://www.formacar.com/zh/action.html"
        ]
        14 => array:4 [
          "id" => 20
          "skey" => "hi"
          "title" => "हिंदी"
          "link" => "https://www.formacar.com/hi/action.html"
        ]
        15 => array:4 [
          "id" => 21
          "skey" => "id"
          "title" => "Indonesian"
          "link" => "https://www.formacar.com/id/action.html"
        ]
      ]
      "is_custom" => true
      "template_path" => "page_templates/action_ru.twig"
      "title" => "Трансляция"
      "text" => "<p><br></p>"
      "is_mobile" => false
      "page_title" => "Formacar: Трансляция"
      "shop_url" => "https://shop.formacar.com"
      "assets" => Phalcon\Assets\Manager {#267}
      "_me" => null
      "_cdn" => "https://www.formacar.com"
      "_dispatcher" => Phalcon\Mvc\Dispatcher {#212}
      "session_id" => "e8e3496eb9f54bd5479c418caf1b0738"
      "t" => Phalcon\Translate\Adapter\NativeArray {#248}
      "_uperm" => Models\RolePermission {#257}
      "current_lang" => Models\Langs {#253}
      "lang_id" => 2
      "home_url" => "https://www.formacar.com"
      "search_story" => []
      "current_section" => "/home/"
      "current_sub_section" => "/home/"
      "banners_links" => array:2 [
        "crypto" => "https://t.me/formacarcrypto"
        "scl" => "https://scl-performance.com/ru"
      ]
      "_domain" => "formacar.com"
    ]
    
[internal]
Arguments
  1. "ru"
    
  2. "action.html"
    
[internal]
Arguments
  1. Modules\App\Controllers\IndexController {#208}
    
  2. "pageAction"
    
  3. array:2 [
      "lang" => "ru"
      "page" => "action.html"
    ]
    
[internal]
/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
  1. "/ru/action.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();
 

Environment & details:

empty
empty
empty
empty
Key Value
LANG
"ru"
currentLanguage
"en"
Key Value
SUPERVISOR_GROUP_NAME
"php-fpm"
WEB_DOCUMENT_INDEX
"index.php"
SUPERVISOR_SERVER_URL
"unix:///.supervisor.sock"
HOSTNAME
"9ecb39cc2003"
PHP_VERSION
"8.1.13"
PHP_SENDMAIL_PATH
"/usr/sbin/sendmail -t -i"
PHP_INI_DIR
"/usr/local/etc/php"
GPG_KEYS
"528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD"
PHP_LDFLAGS
"-Wl,-O1 -pie"
WEB_DOCUMENT_ROOT
"/app/web"
PWD
"/app/web"
WEB_ALIAS_DOMAIN
"*.vm"
WEB_PHP_TIMEOUT
"600"
SERVICE_NGINX_CLIENT_MAX_BODY_SIZE
"50m"
LD_PRELOAD
"/usr/lib/preloadable_libiconv.so"
HOME
"/home/application"
LANG
"C.UTF-8"
APPLICATION_GID
"1000"
DOCKER_CONF_HOME
"/opt/docker/"
PHP_SHA256
"b15ef0ccdd6760825604b3c4e3e73558dcf87c75ef1d68ef4289d8fd261ac856"
PHPIZE_DEPS
"autoconf \t\tdpkg-dev dpkg \t\tfile \t\tg++ \t\tgcc \t\tlibc-dev \t\tmake \t\tpkgconf \t\tre2c"
WEB_PHP_SOCKET
"127.0.0.1:9000"
TERM
"xterm"
PHP_URL
"https://www.php.net/distributions/php-8.1.13.tar.xz"
APPLICATION_GROUP
"application"
SHLVL
"0"
COMPOSER_VERSION
"2"
APPLICATION_USER
"application"
PHP_CFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
LOCAL_DEV
"true"
PHP_DATE_TIMEZONE
"Europe/Moscow"
APPLICATION_UID
"1000"
LOG_STDOUT
"/proc/1/fd/1"
SUPERVISOR_PROCESS_NAME
"php-fpmd"
LC_ALL
"C.UTF-8"
PATH
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
LOG_STDERR
"/proc/1/fd/2"
CONTAINER_UID
"application"
APPLICATION_PATH
"/app"
PHP_ASC_URL
"https://www.php.net/distributions/php-8.1.13.tar.xz.asc"
PHP_CPPFLAGS
"-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
SUPERVISOR_ENABLED
"1"
VIPSHOME
"/usr"
USER
"application"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_CF_CONNECTING_IP
"54.160.244.62"
HTTP_REFERER
"http://formacar.com/ru/action.html"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_CF_RAY
"866a15502b7b209a-IAD"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CONNECTION
"upgrade"
HTTP_X_NGINX_PROXY
"true"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_FOR
"54.160.244.62, 172.71.222.2"
HTTP_X_REAL_IP
"172.71.222.2"
HTTP_HOST
"formacar.com"
REDIRECT_STATUS
"200"
SERVER_NAME
"formacar.local"
SERVER_PORT
"80"
SERVER_ADDR
"172.29.0.2"
REMOTE_PORT
"60762"
REMOTE_ADDR
"91.230.54.46"
SERVER_SOFTWARE
"nginx/1.22.1"
GATEWAY_INTERFACE
"CGI/1.1"
REQUEST_SCHEME
"http"
SERVER_PROTOCOL
"HTTP/1.1"
DOCUMENT_ROOT
"/app/web"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/ru/action.html"
SCRIPT_NAME
"/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
SCRIPT_FILENAME
"/app/web/index.php"
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1710815875.2159
REQUEST_TIME
1710815875
argv
[]
argc
0
empty
0. Whoops\Handler\PrettyPageHandler