oxsmartyrenderer.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class oxSmartyRenderer {
00009 
00015     public function renderTemplate( $sTemplateName, $aViewData = array() )
00016     {
00017         $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty();
00018 
00019         foreach ( $aViewData as $key => $value)
00020         {
00021             $oSmarty->assign( $key, $value );
00022         }
00023 
00024         $sBody = $oSmarty->fetch( $sTemplateName );
00025 
00026         return $sBody;
00027     }
00028 }