Пример #1
0
 protected function smarty()
 {
     static $smarty;
     if ($smarty === null) {
         $smarty = new smartyDriver();
         $smarty->setTemplatesDirectory(__DIR__ . '/../templates/authex');
     }
     return $smarty;
 }
Пример #2
0
 protected function smarty()
 {
     $smarty = new smartyDriver();
     $smarty->setTemplatesDirectory(__DIR__ . '/templates');
     return $smarty;
 }