2017 © Pedro Peláez
 

library slim-view-plates

Custom Slim Framework view for the Plates template system

image

philipsharp/slim-view-plates

Custom Slim Framework view for the Plates template system

  • Tuesday, October 6, 2015
  • by philipsharp
  • Repository
  • 3 Watchers
  • 13 Stars
  • 124 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Custom Slim Framework view for the Plates

This library provides a custom view for the Slim Framework to support the Plates template engine., (*1)

Usage

Add the provider to your composer.json file:, (*2)

{
    "require": {
        "philipsharp/slim-view-plates": "5.*"
    }
}

Enable it in your application, (*3)

<?php

$view = new \philipsharp\Slim\View\Plates();

$app = new \Slim\Slim(array(
    'view' => $view
));

Configuration

Template File Extension

Set $view->fileExtension to the file extension used for all templates., (*4)

By default Plates expects the extension to be .php., (*5)

Templates Path

Set $view->templatesPath to the location of the templates., (*6)

By default Slim-View-Plates will use the Slim templates.path configuration value. This setting allows you to override that value for only the Plates templates., (*7)

Templates Folder

Add to the $view->templatesFolders array, where the key is the name of the folder and the value is the path., (*8)

Advanced Usage

To access the Plates engine object for further customization, including loading extensions, call $view->getInstance()., (*9)

The Versions

06/10 2015

dev-master

9999999-dev http://github.com/philipsharp/slim-view-plates

Custom Slim Framework view for the Plates template system

  Sources   Download

MIT

The Requires

 

templating slim plates

06/10 2015

v5.0.0

5.0.0.0 http://github.com/philipsharp/slim-view-plates

Custom Slim Framework view for the Plates template system

  Sources   Download

MIT

The Requires

 

templating slim plates

09/08 2014

v2.0.0

2.0.0.0 http://github.com/philipsharp/slim-view-plates

Custom Slim Framework view for the Plates template system

  Sources   Download

MIT

The Requires

 

templating slim plates

21/02 2014

v1.0.0

1.0.0.0 http://github.com/philipsharp/slim-view-plates

Custom Slim Framework view for the Plates template system

  Sources   Download

MIT

The Requires

 

The Development Requires

templating slim plates