Example #1
0
 public function indexAction()
 {
     $this->view->typeid = $this->_params['typeid'];
     $this->view->name = $this->_params['name'];
     $_e = new Common_Data_Entry_Type();
     $this->view->items = $_e->getList(array(), array('updated DESC'), 512);
 }
Example #2
0
 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);
 }