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(); }
public function getChannelList() { return ChannelModel::make()->getRootList('title', 'id'); }