2017 © Pedro Peláez
 

library smarty-trait

Silex Smarty Trait

image

junker/smarty-trait

Silex Smarty Trait

  • Monday, July 4, 2016
  • by Junker
  • Repository
  • 1 Watchers
  • 1 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silex Smarty Trait

Smarty Trait for Silex, (*1)

Requirements

  • silex 1.x, 2.x
  • SmartyServiceProvider

Installation

The best way to install Smarty Trait is to use a Composer:, (*2)

php composer.phar require junker/smarty-trait

Examples


class Application extends \Silex\Application { use \Junker\Silex\Application\SmartyTrait; }

use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\StreamedResponse; $app->get('/', function() use ($app) { return $app->render('index.tpl', ['name' => 'Junker']); $response = new Response(); $response->setTtl(10); return $app->render('index.tpl', ['name' => 'Junker'], $response); return $app->render('index.tpl', ['name' => 'Junker'], new StreamedResponse()); });

Documentation

http://silex.sensiolabs.org/doc/master/usage.html#traits, (*3)

The Versions

04/07 2016

dev-master

9999999-dev

Silex Smarty Trait

  Sources   Download

MIT

by Dmitry Kosenkov

silex trait smarty

04/07 2016

0.1.0

0.1.0.0

Silex Smarty Trait

  Sources   Download

MIT

by Dmitry Kosenkov

silex trait smarty