00001 <?php 00002 00008 class oxSmartyRenderer 00009 { 00010 00019 public function renderTemplate($sTemplateName, $aViewData = array()) 00020 { 00021 $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty(); 00022 00023 foreach ($aViewData as $key => $value) { 00024 $oSmarty->assign($key, $value); 00025 } 00026 00027 $sBody = $oSmarty->fetch($sTemplateName); 00028 00029 return $sBody; 00030 } 00031 }