public function createpostAction() { $_e = new Common_Data_Entry_Type(); $item = array('typeid' => $this->_params['typeid'], 'title' => $this->_params['title'], 'summary' => $this->_params['summary']); try { $_e->insert($item); } catch (Exception $e) { throw $e; } $links = array(array('title' => 'Manage Fields', 'url' => '/wcm/type-admin/fields?typeid=' . $item['typeid']), array('title' => 'Content Types', 'url' => '/wcm/type-admin/')); $this->view->message = Common_Message::get('success', 'Success', $links); $this->render('message-block', null, true); }