private function Create() { $cadastra = new WsPosts(); $this->Data['post_views'] = null; $this->Data['post_last_views'] = null; $this->Data['post_id'] = null; $cadastra->setThis((object) $this->Data); $result = $cadastra->insert(); $this->Message($this->Data['post_title'], "cadastrado", $cadastra->getLastId("post_id"), $result); }