Ejemplo n.º 1
0
 /**
  * 
  * 对菜单排序执行页面
  * @author 张骥
  */
 public function sortAction()
 {
     /**
      * 记录日志
      */
     $log = "对菜单排序执行页面\n\nServerIp:\n" . $this->request->getServer('SERVER_ADDR') . "\n\nGET:\n" . var_export($_GET, true) . "\n\nPOST:\n" . var_export($_POST, true);
     $this->oLogManager->push('log', $log);
     $this->manager->checkMenuPermission($this->sign, Widget_Manager::MENU_PURVIEW_SELECT);
     $Menu = new Widget_Menu();
     $sort = $this->request->sort;
     foreach ($sort as $menu_id => $order) {
         $bind = array('sort' => $order);
         $Menu->update($menu_id, $bind);
     }
     $this->response->goBack();
 }