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

24 lines
550 B
PHP

<?php
/**
* Created by PhpStorm.
* User: Indexyz
* Date: 11/9/2018
* Time: 9:15 PM
*/
namespace App\Utils;
use Smarty;
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", "App\Services\Config");
return $smarty;
}
}