File code/addon/View.php
class Lia\Addon\View
Constants
Properties
-
public $fqn = 'lia:server.view';
-
public $name = 'view';
-
public $views = [null=>[]];
Views to be loaded.
-
public array $globalArgs = [];
Args to pass to every view
Methods
-
public function __construct($lia=null, $namenull)
-
public function addDir($dir, $package)
-
public function addView($view_name, $dir)
-
public function addViewFile($view_name, $file)
-
public function addViewCallable($view_name, $callable)
-
public function view($name, $args=[])
-
public function show_file($view, $args)
-
public function show_callable($view, $args)
-
public function show_main($view, $args)
-
public function addFiles($dir)
add resource files in the given directory