public function update() { $success = false; //$radioactive->remove(array('type' => 94), array("justOne" => true)); if ($this->request->data) { $success = Posts::update($this->request->data); //$success = $post->delete(); } return compact('success'); }