Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mathmarques committed Mar 31, 2016
1 parent 7d602a6 commit 96631cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Slim Framework 3 Smarty View

[![Build Status](https://travis-ci.org/mathmarques/Smarty-View.svg)](https://travis-ci.org/mathmarques/Smarty-View)
[![Build Status](https://travis-ci.org/mathmarques/Smarty-View.svg)](https://travis-ci.org/mathmarques/Smarty-View)[![Latest Stable Version](https://poser.pugx.org/mathmarques/smarty-view/v/stable)](https://packagist.org/packages/mathmarques/smarty-view)[![Total Downloads](https://poser.pugx.org/mathmarques/smarty-view/downloads)](https://packagist.org/packages/mathmarques/smarty-view)[![License](https://poser.pugx.org/mathmarques/smarty-view/license)](https://packagist.org/packages/mathmarques/smarty-view)

This is a Slim Framework 3 view helper built on top of the Smarty templating component. You can use this component to create and render templates in your Slim Framework application.

Expand Down Expand Up @@ -32,7 +32,9 @@ $container['view'] = function ($c) {
]);

// Add Slim specific plugins
$view->addSlimPlugins($c['router'], $c['request']->getUri());
$smartyPlugins = new \Slim\Views\SmartyPlugins($c['router'], $c['request']->getUri());
$view->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']);
$view->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);

return $view;
};
Expand Down
2 changes: 1 addition & 1 deletion src/Smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct($paths, $settings = [])
* @param RouterInterface $router
* @param string|\Slim\Http\Uri $uri
*
* @deprecated Deprecated since version 1.1.0. Use registerPlugin instead.
* @deprecated Deprecated since version 1.1.0. Use registerPlugin instead. See README for more info.
*/
public function addSlimPlugins(RouterInterface $router, $uri)
{
Expand Down

0 comments on commit 96631cf

Please sign in to comment.