ManaPHP\Mvc\View::partial PHP Method

partial() public method

Show a partial inside another view $this->partial('shared/footer'); Show a partial inside another view with parameters $this->partial('shared/footer', array('content' => $html));
public partial ( string $path, array $vars = [] )
$path string
$vars array
    public function partial($path, $vars = [])
    {
        if (!Text::contains($path, '/')) {
            $path = $this->_controllerName . '/' . $path;
        }
        $this->_render("@views/{$path}", $vars, true);
    }