PluginProbe ʕ •ᴥ•ʔ
Zenchef widget integration / 1.2.0
Zenchef widget integration v1.2.0
1.0.1 1.2.0 trunk 1.0.0
zenchef-widget-integration / src / View / render.php
zenchef-widget-integration / src / View Last commit date
render.php 1 year ago
render.php
19 lines
1 <?php
2
3 namespace Zenchef\Widget\View;
4
5 use function extract;
6 use const Zenchef\Widget\ROOT_PATH;
7
8 /**
9 * @param string $path
10 * @param array<string, mixed> $variables
11 * @return string
12 */
13 function render($path, array $variables = [])
14 {
15 extract($variables);
16
17 return include ROOT_PATH . 'views/' . $path . '.phtml';
18 }
19