public function indexAction() { $this->name = $this->p('category', Setting_Category::first()->name); $this->current = Setting_Category::get($this->name); $this->settings = Setting::getCategory($this->name); $this->pageTitle = 'Settings: ' . $this->current->title; }