/** * Render a partial view script. * * Generally, your helper should render HTML with partial view scripts * rather than generating the markup in the helper class directly. This * makes it easier for frontend developers to make modifications to the HTML. * * The $data parameter should contain key-value pairs for each variable you'd * like available in your partial view. * * @param string $name * @param array $data * @return string The rendered output */ public function partial($name, array $data) { return $this->view->partial($name, $data, __DIR__ . '/partials'); }