2017 © Pedro Peláez
 

library smarty

This package lets you run Smarty3 on Laravel5 elegantly.

image

addons/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

  • Friday, June 1, 2018
  • by addons
  • Repository
  • 1 Watchers
  • 0 Stars
  • 106 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

Smarty

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

Installation

composer require addons/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' => [
        // ...
        'Addons\Smarty\View\SmartyServiceProvider',
    ]

Then publish the config file with php artisan vendor:publish. This will add the file config/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

01/06 2018

dev-master

9999999-dev https://www.load-page.com

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

01/06 2018

1.0.2

1.0.2.0 https://www.load-page.com

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

19/11 2017

1.0.1

1.0.1.0 https://www.load-page.com

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

02/11 2016

1.0.0

1.0.0.0 https://www.load-page.com

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