示例#1
0
 protected function onGet(\Controllers\Request $input)
 {
     $id = $this->input->get('id');
     $this->data['order'] = Order::find($id);
     if (!$this->data['order']) {
         return $this->redirect($this->plugin->orders_url());
     }
     return parent::onGet($input);
 }