/**
  * Render the Smarty template and return the result as a string (typically html).
  *
  * @param	string		name of template file (e.g. myTemplate.tpl) or full path to template (e.g. full/path/to/myTemplate.tpl)
  * @param 	array		Optional array of Smarty configuration variables, for example array('debugging' => true).
  * @return	string		typically an (x)html string
  */
 function render($template, $conf = array())
 {
     if (!t3lib_extMgm::isLoaded('smarty')) {
         return '<p class="warning">smarty is not available.</p>';
     }
     $this->smarty = tx_smarty::smarty($conf);
     $this->smarty->assign($this->getArrayCopy());
     $this->smarty->assign_by_ref('view', $this);
     return $this->smarty->display($template);
 }
예제 #2
0
 function &newSmartyTemplate($localConf = array())
 {
     return tx_smarty::smarty($localConf);
 }