Skip to content

TinyLara/TinyView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

TinyLara\TinyView

Latest Stable Version Total Downloads License

TinyView is a tiny view-loader used by Tinylara, fast and sexy! Read the documentation.

Install

If you have Composer, just include TinyView as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.

require: {
    "tinylara/tinyview": "*"
}

Examples

Load it:

// VIEW_BASE_PATH
define('VIEW_BASE_PATH', __DIR__.'/app/views/');

// View Loader
class_alias('\TinyLara\TinyView\TinyView','View');

Use it:

$view = View::make('home')->with('article',Article::first())
                          ->withTitle('TinyLara :-D')
                          ->withFooBar('foo_bar');
View::process($view);

License

The TinyView is open-sourced software licensed under the MIT license

About

A tiny view-loader used by Tinylara, fast and sexy!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages