Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Surkov committed Aug 28, 2021
2 parents 9280f20 + ac5de03 commit d3b43c1
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 d3b43c1

Please sign in to comment.