OXID eShop CE  4.9.9
 All Classes Files Functions Variables Pages
tpl.php
Go to the documentation of this file.
1 <?php
2 
8 class Tpl extends oxUBase
9 {
10 
16  public function render()
17  {
19 
20  // security fix so that you cant access files from outside template dir
21  $sTplName = basename((string) oxRegistry::getConfig()->getRequestParameter("tpl"));
22  if ($sTplName) {
23  $sTplName = 'custom/' . $sTplName;
24  }
25 
26  return $sTplName;
27  }
28 }