Skip to content

bbrdaric/Laravel-SmartyView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
borissamardzija
Feb 20, 2013
4f88939 · Feb 20, 2013

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartyView - Laravel View Replacement

SmartyView replaces the default Laravel View class with the Smarty Template Engine.

Included Smarty version: 3.1.13

Installation

  1. Download the Source from Github.

  2. Register the Bundle with Laravel In the application/bundles.php file, register the SmartyView bundle

'smartyview' => array(
  'location' => 'smartyview', 'autoloads' => array(
    'map' => array(
      'SmartyView\\View' => '(:bundle)/view.php',
    )
  )
)
  1. Replace the View alias (optional) In the application/config/application.php file, replace the alias with the following:
'aliases' => array(
  ...
  View' => 'SmartyView\\View',
);

If you do not wish to replace or create the alias, you can use the Smarty template engine like this:

// app view
\SmartyView\View::make('index.test')->with('var', 'value');

// bundle view
\SmartyView\View::make('docs::test')->with('var', 'value');

Thanks

[Kris Geens] (https://github.com/skmedia) for original Laravel-SmartyView bundle.

About

Smarty Template Engine for Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%