File modules/cms/action/grouplist/GrouplistEditAction.class.php
Last commit: Thu Nov 19 12:36:44 2020 +0100 Jan Dankert Fix: nextSubAction() is depracated and should not be used.
1 <?php 2 namespace cms\action\grouplist; 3 use cms\action\GrouplistAction; 4 use cms\action\Method; 5 use cms\model\Group; 6 7 8 class GrouplistEditAction extends GrouplistAction implements Method { 9 10 public function view() { 11 $list = array(); 12 13 foreach( Group::getAll() as $id=>$name ) 14 { 15 $list[$id] = array(); 16 $list[$id]['id' ] = $id; 17 $list[$id]['name'] = $name; 18 } 19 20 $this->setTemplateVar('el', $list); 21 } 22 23 public function post() { 24 } 25 }
Downloadmodules/cms/action/grouplist/GrouplistEditAction.class.php
History Thu, 19 Nov 2020 12:36:44 +0100 Jan Dankert Fix: nextSubAction() is depracated and should not be used. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.