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.
28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Indexyz
|
|
* Date: 11/9/2018
|
|
* Time: 9:15 PM
|
|
*/
|
|
|
|
namespace App\Utils;
|
|
|
|
use Smarty;
|
|
use App\Services\Config;
|
|
|
|
|
|
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/');
|
|
$smarty->registerClass('config', Config::class);
|
|
return $smarty;
|
|
}
|
|
}
|