Exemplo n.º 1
0
 /**
  * Display the tabs of the users page
  */
 public function index()
 {
     $tabs = array('users' => $this->listUsers(), 'roles' => RoleController::getInstance()->listRoles(), 'questions' => QuestionController::getInstance()->listQuestions());
     $this->addCss(Plugin::current()->getCssUrl('users.less'));
     $this->addJavaScript(Plugin::current()->getJsUrl('users.js'));
     $page = View::make(Plugin::current()->getViewsDir() . 'users.tpl', array('tabs' => $tabs));
     return NoSidebarTab::make(array('page' => $page, 'icon' => 'users', 'title' => 'Utilisateurs'));
 }