flaviovs/uview

Micro view templating system for PHP

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/flaviovs/uview

1.0.0 2016-02-18 21:00 UTC

This package is not auto-updated.

Last update: 2025-10-17 23:16:49 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;