Пример #1
0
 public function orderAction()
 {
     // Get, check and setup the parameters
     $order = $this->getRequest()->getParam("user_widgets");
     // Assign the new positions
     $widgets = new Widgets();
     for ($i = 0; $i < count($order); $i++) {
         $widgets->setPosition($order[$i], $i);
     }
     return $this->_helper->json->sendJson(false);
 }