Exemplo n.º 1
0
 public function orderAction()
 {
     $this->view->page = 'order';
     $user_id = getUserId();
     if ($user_id == 0) {
         $this->_helper->redirector('index', 'index');
     }
     $user_admin = getIsAdmin();
     if ($user_admin != 0) {
         $this->_helper->redirector('order', 'admin');
     }
     $index = new Application_Model_DbTable_Index();
     $category = $index->getOrderByUser($user_id);
     if ($category['status']) {
         $this->view->order = $category['value'];
     }
 }