tpl.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Tpl extends oxUBase
00009 {
00015     public function render()
00016     {
00017         parent::render();
00018 
00019         // security fix so that you cant access files from outside template dir
00020         $sTplName = basename( (string) oxConfig::getParameter( "tpl" ) );
00021         if ($sTplName) {
00022             $sTplName = 'custom/'.$sTplName;
00023         }
00024 
00025         return $sTplName;
00026     }
00027 }