Beispiel #1
0
 protected function onGet(\Controllers\Request $input)
 {
     $id = $this->input->get('id');
     $this->data['module'] = Module::find($id);
     if (!$this->data['module']) {
         return $this->redirect($this->plugin->modules_url());
     }
     return parent::onGet($input);
 }
Beispiel #2
0
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['modules'] = Module::all();
     return parent::onGet($input);
 }
Beispiel #3
0
 protected function onGet(\Controllers\Request $input)
 {
     $this->data['modules'] = Module::orderBy('name')->paginate(10, ['*'], 'subpage');
     return parent::onGet($input);
 }