You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Malio/app/Utils/ConfRender.php

28 lines
572 B
PHTML

<?php
/**
* Created by PhpStorm.
* User: Indexyz
* Date: 11/9/2018
* Time: 9:15 PM
*/
namespace App\Utils;
use Smarty;
8 years ago
use App\Services\Config;
8 years ago
class ConfRender
{
public static function getTemplateRender()
{
$smarty = new smarty();
$smarty->settemplatedir(BASE_PATH . '/resources/conf/');
$smarty->setcompiledir(BASE_PATH . '/storage/framework/smarty/compile/');
$smarty->setcachedir(BASE_PATH . '/storage/framework/smarty/cache/');
8 years ago
$smarty->registerClass('config', Config::class);
return $smarty;
}
8 years ago
}