Skip to content

stonenyy/View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

STONENYY/View

A view class for php

Install

in composer.json:

require: {
    "stonenyy/view": "dev-master"
}

Examples

in autoload.php:

use STONENYY\View as View;
View::config(['path' => APP_PATH.'/views/']);

in *controller.php:

use STONENYY\View as View;
View::set(array('data' => array('test')));
View::show('home'); //this 'home' is home.php in view path

in home.php:

var_dump($data);

About

A view class for php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages