public function getIndex() { $modules = Config::get('mod_info'); $modules['layout'] = array('title' => 'Шаблон сайта'); #Helper::dd($modules); $templates = ModTemplates::get(); #Helper::dd($templates); return View::make($this->module['tpl'] . 'index', compact('modules', 'templates'))->render(); }
private function __construct() { self::$templates = array(); }