コード例 #1
0
 public function getShow($id = null)
 {
     if ($this->access['is_detail'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     $row = $this->model->getRow($id);
     if ($row) {
         $this->data['row'] = $row;
     } else {
         $this->data['row'] = $this->model->getColumnTable('tb_weight_pricing');
     }
     $this->data['id'] = $id;
     $this->data['access'] = $this->access;
     $this->data['setting'] = $this->info['setting'];
     $this->data['fields'] = \AjaxHelpers::fieldLang($this->info['config']['forms']);
     return view('weightbasedpricing.view', $this->data);
 }
コード例 #2
0
 public function getShow($id = null)
 {
     if ($this->access['is_detail'] == 0) {
         return Redirect::to('dashboard')->with('messagetext', \Lang::get('core.note_restric'))->with('msgstatus', 'error');
     }
     $row = $this->model->getRow($id);
     if ($row) {
         $this->data['row'] = $row;
     } else {
         $this->data['row'] = $this->model->getColumnTable('tax_groups_header_t');
     }
     $this->data['fields'] = \AjaxHelpers::fieldLang($this->info['config']['forms']);
     $this->data['subgrid'] = $this->detailview($this->modelview, $this->data['subgrid'], $id);
     $this->data['id'] = $id;
     $this->data['access'] = $this->access;
     return view('taxgroupsheaders.view', $this->data);
 }