OXID eShop CE  4.9.9
 All Classes Files Functions Variables Pages
oxsmartyrenderer.php
Go to the documentation of this file.
1 <?php
2 
9 {
10 
19  public function renderTemplate($sTemplateName, $aViewData = array())
20  {
21  $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty();
22 
23  foreach ($aViewData as $key => $value) {
24  $oSmarty->assign($key, $value);
25  }
26 
27  $sBody = $oSmarty->fetch($sTemplateName);
28 
29  return $sBody;
30  }
31 }