public function addSlimPlugins(RouterInterface $router, $uri)
    {
        $smartyPlugins = new SmartyPlugins($router, $uri);
        $this->smarty->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']);
        $this->smarty->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
    }
public function addSlimPlugins(RouterInterface $router, $uri)
    {
        $smartyPlugins = new SmartyPlugins($router, $uri);
        $this->smarty->registerPlugin('function', 'path_for', [$smartyPlugins, 'pathFor']);
        $this->smarty->registerPlugin('function', 'base_url', [$smartyPlugins, 'baseUrl']);
    }
public function addSlimPlugins ( RouterInterface $ router , $ uri ) { $ smartyPlugins = new SmartyPlugins ( $ router , $ uri ) ; $ this -> smarty -> registerPlugin ( 'function' , 'path_for' , [ $ smartyPlugins , 'pathFor' ] ) ; $ this -> smarty -> registerPlugin ( 'function' , 'base_url' , [ $ smartyPlugins , 'baseUrl' ] ) ; }
Method to add the Slim plugins to Smarty

@param RouterInterface $router
@param string|\Slim\Http\Uri $uri

@deprecated Deprecated since version 1.1.0. Use registerPlugin instead. See README for more info.
Method to add the Slim plugins to Smarty