2017 © Pedro Peláez
 

library templating-smarty

Symfony Templating Component support for Smarty.

image

robloach/templating-smarty

Symfony Templating Component support for Smarty.

  • Tuesday, November 4, 2014
  • by RobLoach
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Templating Smarty

Build Status Total Downloads Latest Stable Version, (*1)

Smarty support for Symfony's Templating component., (*2)

Installation

Templating Smarty can be installed with Composer by adding it as a dependency to your project's composer.json file., (*3)

{
    "require": {
        "robloach/templating-smarty": "*"
    }
}

Please refer to Composer's documentation for more detailed installation and usage instructions., (*4)

Usage

Instantiate the engine:, (*5)

``` php use RobLoach\TemplatingExtras\SmartyEngine;, (*6)

$parser = new Symfony\Component\Templating\TemplateNameParser(); $templating = new SmartyEngine($parser, array( 'template_dir' => '.' ));, (*7)

echo $templating->render('hello.smarty', array('firstname' => 'Fabien'));, (*8)


#### hello.smarty ``` smarty Hello, {$firstname}!

See Symfony's documentation on Templating for more information about using the different template engines available., (*9)

The Versions

04/11 2014

dev-master

9999999-dev http://github.com/RobLoach/templating-smarty

Symfony Templating Component support for Smarty.

  Sources   Download

MIT

The Requires

 

The Development Requires