src/mg/Ding/Mvc/Http/SmartyViewRender.php
public function render(View $view)
    {
        /**
         * @todo is there a better way to do this?
         */
        global $modelAndView;
        $modelAndView = $view->getModelAndView();
        require_once('Smarty.class.php');
        $smarty = new \Smarty();
        $smarty->template_dir = dirname($view->getPath());
        $smarty->compile_dir = $this->_smartyOptions['compile_dir'];
        $smarty->config_dir = $this->_smartyOptions['config_dir'];
        $smarty->cache_dir = $this->_smartyOptions['cache_dir'];
        $smarty->debugging = $this->_smartyOptions['debugging'];
        foreach ($modelAndView->getModel() as $key => $value) {
            $smarty->assign($key, $value);
        }
        $smarty->display(basename($view->getPath()));
    }
public function render(View $view)
    {
        /**
         * @todo is there a better way to do this?
         */
        global $modelAndView;
        $modelAndView = $view->getModelAndView();
        require_once('Smarty.class.php');
        $smarty = new \Smarty();
        $smarty->template_dir = dirname($view->getPath());
        $smarty->compile_dir = $this->_smartyOptions['compile_dir'];
        $smarty->config_dir = $this->_smartyOptions['config_dir'];
        $smarty->cache_dir = $this->_smartyOptions['cache_dir'];
        $smarty->debugging = $this->_smartyOptions['debugging'];
        foreach ($modelAndView->getModel() as $key => $value) {
            $smarty->assign($key, $value);
        }
        $smarty->display(basename($view->getPath()));
    }
(non-PHPdoc)
@see Ding\Mvc.IViewRender::render()