public function assignidAction() { $this->view->disable(); if ($this->request->isPost()) { $category_id = PCategory::id(); } echo $category_id; }