Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rhildred/slimphpviews

a Slim/View descendent with shared layouts that uses modern php for templating
https://github.com/rhildred/slimphpviews

Last synced: 12 days ago
JSON representation

a Slim/View descendent with shared layouts that uses modern php for templating

Awesome Lists containing this project

README

        

# slimphpviews
a Slim/View descendent with shared layouts that uses modern php for templating

Composer.json
---
```
"require": {
"slim/slim": "2.*",
"rhildred/slimphpviews": "dev-master"
},
```
Example `public/index.php`
----
```
new \PHPView\PHPView(),
'templates.path' => __DIR__ . "/../views"));
$app->get('/', $index = function () use($app) {
$app->render("index.phtml", array("page" => "index"));
});
$app->run();
```
`views/index.phtml`
----
```
layout("_layout.phtml") ?>


Bootstrap starter template


Use this document as a way to quickly start any new project.

All you get is this text and a mostly barebones HTML document.



```
`views/_layout.phtml`
------
```

Rich On Sourceforge

renderBody();
?>

```