Example #1
0
 public function reorder()
 {
     $this->pageTitle = 'Reorder Channels';
     $toolbarConfig = $this->makeConfig();
     $toolbarConfig->buttons = '@/plugins/rainlab/forum/controllers/channels/_reorder_toolbar.htm';
     $this->vars['toolbar'] = $this->makeWidget('Backend\\Widgets\\Toolbar', $toolbarConfig);
     $this->vars['records'] = Channel::make()->getEagerRoot();
 }
Example #2
0
 public function getChannelList()
 {
     return ChannelModel::make()->getRootList('title', 'id');
 }