Skip to content

Commit

Permalink
улучшена совместная работа с Laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Surkov committed Aug 28, 2021
1 parent dd138ca commit ac5de03
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Core/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,22 +363,6 @@ public function layout(string $template, $content_template, $vars = [], $before
return $view;
}

/**
* Специальный метод для передачи шаблона в слой
*
* @param $template
* @param $content_template
* @param array $vars
* @return static
*/
public function action(string $action, $content_template, $vars = [])
{
$this->template = $content_template;
$view = (new static($template, $vars));
$view->inject('content', $this);
return $view;
}


/**
* @param CoreInterface $app
Expand Down

0 comments on commit ac5de03

Please sign in to comment.