public function login() { if (isset($_SESSION['userid'])) { Functions::redirect(Settings::cloutURL() . '/home'); } View::Render('login', $this->data, Settings::viewFolder()); }
public function show($section_id) { //show single $this->data['section'] = Section::find($section_id, 'id'); $ft = new FieldType(); $this->data['fieldtypes'] = $ft->all(); View::Render('settings.sections.edit', $this->data, Settings::viewFolder()); }
public function show($section) { $this->data['section'] = Section::find($section, 'slug'); $this->data['records'] = Output::section($section)->all(); View::Render('record.list', $this->data, Settings::viewFolder()); }