public function settings() { \User::onlyHas('chat-view'); $data['setts'] = \SettingsModel::getAll(); $this->layout->content = Template::moduleView($this->module_name, 'views.chat-settings', $data); return $this->layout; }
public function getIndex() { User::onlyHas("settings-view"); $this->data['setts'] = SettingsModel::getAll(); $this->layout->content = View::make('sections.settings.edit', $this->data); }
public function getIndex() { User::onlyHas("template-edit"); $this->data['setts'] = SettingsModel::getAll(); $this->layout->content = View::make('sections.template.change', $this->data); }