protected function smarty() { static $smarty; if ($smarty === null) { $smarty = new smartyDriver(); $smarty->setTemplatesDirectory(__DIR__ . '/../templates/authex'); } return $smarty; }
protected function smarty() { $smarty = new smartyDriver(); $smarty->setTemplatesDirectory(__DIR__ . '/templates'); return $smarty; }