Skip to content

ManifestWebDesign/dabl-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Dabl View

Simple class for rendering pure PHP views

Example

app.php:

use Dabl\View\View;

View::addDirectory(__DIR__ . '/views');
$output = View::load(
    'view', // view name
    array(
        'my_param' => 'hello world' // param to be injecting into the view
    ),
    true // return output instead of sending output to browser
);
echo $output;

views/view.php:

<div><?= $my_param ?></div>

output:

<div>hello world</div>

About

Library for rendering PHP views

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages