phpvms/app/Widgets/BaseWidget.php
2018-01-10 16:02:33 -06:00

23 lines
404 B
PHP

<?php
/**
* Created by IntelliJ IDEA.
* User: nshahzad
* Date: 1/8/18
* Time: 7:46 PM
*/
namespace App\Widgets;
use Arrilot\Widgets\AbstractWidget;
class BaseWidget extends AbstractWidget
{
public $cacheTime = 0;
public function view(string $template, array $vars = [])
{
$tpl = 'layouts/' . config('phpvms.skin') . '/' . $template;
return view($tpl, $vars);
}
}