2017 © Pedro Peláez
 

library slim-savant

Savant renderer for Slim

image

p3k/slim-savant

Savant renderer for Slim

  • Friday, February 23, 2018
  • by aaronpk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Usage

Setup

In your public/index.php, add this line:, (*1)

\Slim\Savant\init();

Render

In your controller, you can use the render helper function. The helper function assumes your master layout is called views/layout.php., (*2)

In PHP 5.6, you can alias the render function:, (*3)

use function \Slim\Savant\render;

render('index');

Below 5.6, you'll need to do the following:, (*4)

use \Slim\Savant;

Savant\render('index');

Partials

Savant\partial('foo');

The Versions

23/02 2018

dev-master

9999999-dev

Savant renderer for Slim

  Sources   Download

Apache-2.0 Apache 2.0

The Requires

 

21/07 2015

0.1.0

0.1.0.0

Savant renderer for Slim

  Sources   Download

Apache 2.0

The Requires