Smarty introduced in the boot file:
Include_once (".. /library/smarty/smarty.class.php ");
$smarty = new Smarty ();
$smarty->caching = false;
$smarty->template_dir = Application_path. " Application/views/scripts/";
$smarty->compile_dir = "./data/smarty/";
$smarty->cache_dir = "./data/smarty/cache_c/";
$smarty->left_delimiter = "<{";
$smarty->right_delimiter = "}>";
Require_once "zend/loader/autoloader.php";
Zend_loader_autoloader::getinstance ()->setfallbackautoloader (true);
$registry = Zend_registry::getinstance ();
$registry->set (' Smarty ', $smarty);
Configuration of the front-end controller during ingestion:
$front = Zend_controller_front::getinstance ();
$front->setbaseurl ('/');
$front->setparam (' Usedefaultcontrolleralways ', true);
$front->setparam (' Noviewrenderer ', true);
$front->setcontrollerdirectory ('.. /application/controllers ');
$front->throwexceptions (TRUE);
$this->view is configured in the controller:
$this->registry = Zend_registry::getinstance ();
$this->view = $this->registry [' Smarty '];
$this->view->assign (' BaseURL ', $this->_request->getbaseurl ());