public function edit($id) { if (!($tag = Tagger::findById($id))) { Flash::set('error', __('Tag not found!')); redirect(get_url('plugin/tagger')); } // check if trying to save if (get_request_method() == 'POST') { return $this->_edit($id); } $this->display('tagger/views/edit', array('action' => 'edit', 'tag' => $tag)); }