2017 © Pedro Peláez
 

library smarty

This package lets you run Smarty3 on Laravel5 elegantly.

image

latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

  • Tuesday, June 14, 2016
  • by Latrell
  • Repository
  • 2 Watchers
  • 12 Stars
  • 4,949 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 15 Forks
  • 4 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

Smarty

This package lets you run Smarty3 on Laravel5 elegantly., (*1)

Installation

composer require latrell/smarty dev-master

Update your packages with composer update or install with composer install., (*2)

Usage

To use the Smarty Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this., (*3)

Find the providers key in config/app.php and register the Smarty Service Provider., (*4)

    'providers' => [
        // ...
        'Latrell\Smarty\SmartyServiceProvider',
    ]

Then publish the config file with php artisan vendor:publish. This will add the file config/latrell-smarty.php. This config file is the primary way you interact with Smarty., (*5)

Then simply reference templates using the normal dot syntax of Laravel., (*6)

For example to load smarty template views/blog/post.tpl, you would use view('blog.post')., (*7)

In Smarty {include} or {extends} tags, you should continue to use the full directory syntax, e.g. {extends file="blog/post.tpl"}., (*8)

The Versions

14/06 2016

dev-master

9999999-dev

This package lets you run Smarty3 on Laravel5 elegantly.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel templating smarty laravel 5 l5 view smarty 3

13/10 2014

1.2

1.2.0.0

This package lets you run Smarty3 on Laravel4 elegantly.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel templating laravel 4 smarty view smarty 3 l4

27/06 2014

1.1

1.1.0.0

This package lets you run Smarty3 on Laravel4 elegantly.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel templating laravel 4 smarty view smarty 3 l4

25/04 2014

1.0

1.0.0.0

This package lets you run Smarty3 on Laravel4 elegantly.

  Sources   Download

MIT

The Requires

 

by Latrell Chan

laravel templating laravel 4 smarty view smarty 3 l4