in /home/j/julimiql/restorankirov2/vendor/yiisoft/yii2/base/Component.php at line 209
{{ field_row(form.know) }} {{ field_row(form.food) }} {{ field_row(form.drink) }} <div class="got_children_wrap"> {{ field_row(form.is_child) }} </div> <div class="many_children_wrap"> {{ field_row(form.children) }} </div> </div> <p class="sub_btm"> Заполняя анкету, вы даете согласие на хранение и обработку предоставленных данных. </p> <input class="btn" type="submit" value="Отправить"> {{ form_end() }} </div> </div>
"; } // line 54 echo " </header> "; // line 55 $this->displayBlock('content', $context, $blocks); // line 57 echo " <div class=\"footer_space"; if ( $this->hasBlock("footer_soc", $context, $blocks)) { echo " ftr_w_soc"; } echo "\"></div>
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
{ 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()) {
protected function doDisplay(array $context, array $blocks = []) { // line 7 $context["hide_main_slider_wrap"] = true; // line 1 $this->parent = $this->loadTemplate("layouts/main.twig", "card.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 3 public function block_title($context, array $blocks = []) { echo "Анкета участника бонусной программы";
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
{ 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()) {
if ($this->env->isDebug()) { ob_start(); } else { ob_start(function () { return ''; }); } try { $this->display($context); } catch (\Exception $e) { while (ob_get_level() > $level) { ob_end_clean(); } throw $e;
* @return string The rendered template */ public function render($context = []) { // using func_get_args() allows to not expose the blocks argument // as it should only be used by internal code return $this->template->render($context, \func_num_args() > 1 ? func_get_arg(1) : []); } /** * Displays the template. * * @param array $context An array of parameters to pass to the template
* @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 = []) { return $this->load($name)->render($context); } /** * Displays a template. * * @param string|TemplateWrapper $name The template name
if ($view instanceof View) { $this->addFallbackPaths($loader, $view->theme); } $this->addAliases($loader, Yii::$aliases); $this->twig->setLoader($loader); return $this->twig->render(pathinfo($file, PATHINFO_BASENAME), $params); } /** * Adds aliases * * @param \Twig_Loader_Filesystem $loader
if (isset($this->renderers[$ext])) { if (is_array($this->renderers[$ext]) || is_string($this->renderers[$ext])) { $this->renderers[$ext] = Yii::createObject($this->renderers[$ext]); } /* @var $renderer ViewRenderer */ $renderer = $this->renderers[$ext]; $output = $renderer->render($this, $viewFile, $params); } else { $output = $this->renderPhpFile($viewFile, $params); } $this->afterRender($viewFile, $params, $output); }
* @throws InvalidCallException if the view cannot be resolved. * @see renderFile() */ public function render($view, $params = [], $context = null) { $viewFile = $this->findViewFile($view, $context); return $this->renderFile($viewFile, $params, $context); } /** * Finds the view file based on the given view name. * @param string $view the view name or the [path alias](guide:concept-aliases) of the view file. Please refer to [[render()]] * on how to specify this parameter.
* These parameters will not be available in the layout. * @return string the rendering result. * @throws InvalidArgumentException if the view file or the layout file does not exist. */ public function render($view, $params = []) { $content = $this->getView()->render($view, $params, $this); return $this->renderContent($content); } /** * Renders a static string by applying a layout. * @param string $content the static string being rendered
{ $params = ArrayHelper::merge($params, [ 'menu_header' => Menu::getItems(Menu::POS_HEADER), 'menu_footer' => Menu::getItems(Menu::POS_FOOTER), 'menu_places' => PlaceView::createFromArray(Place::find()->active()->all()), ]); return parent::render($view, $params); } }
$form->sendCardRequestEmails($place); Yii::$app->session->setFlash('success', 'Спасибо за заявку, дождитесь письма о готовности Вашей карты.'); return $this->refresh(); } return $this->render('card', [ 'model' => new PlaceView($place), 'form' => CardFormBuilder::create($form), ]); } public function actionMenu($slug) { $place = PlaceFinder::getBySlugOrFail($slug);
$args = $this->controller->bindActionParams($this, $params); Yii::debug('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__); if (Yii::$app->requestedParams === null) { Yii::$app->requestedParams = $args; } return call_user_func_array([$this->controller, $this->actionMethod], $args); } }
} $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules foreach ($modules as $module) { /* @var $module Module */
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
require(__DIR__ . '/../common/config/main-local.php'), require(__DIR__ . '/../frontend/config/main.php'), require(__DIR__ . '/../frontend/config/main-local.php') ); $application = new yii\web\Application($config); $application->run();
$_GET = [ 'slug' => 'bocka', ];