flaviovs / uview
Micro view templating system for PHP
1.0.0
2016-02-18 21:00 UTC
Requires
- php: >=5.4.0
Requires (Dev)
- havramar/phpunit-tmp-dir: dev-master
- phpunit/phpunit: >=4
This package is not auto-updated.
Last update: 2024-11-01 18:39:18 UTC
README
Usage:
$registry = new UView\Registry('/path/of/view/files');
# (...)
try {
# Will try to load '/path/of/view/files/page.php'
$view = $registry->get('page');
} catch (RuntimeException $ex) {
die('Could not find view file');
}
$view->set('user_name', 'John Smith');
$view->set('user_login', 'john.smith');
echo $view;