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