public function index() { if (isset($this->args[0])) { if ($this->args[0] == "addgroup") { $controller = new Controller_Users_Addgroup(); $controller->index(); } elseif ($this->args[0] == "structure") { $controller = new Controller_Users_Structure(); $controller->index(); } elseif ($this->args[0] == "editgroup") { $controller = new Controller_Users_Editgroup(); $controller->index(); } elseif ($this->args[0] == "adduser") { $controller = new Controller_Users_Adduser(); $controller->index(); } elseif ($this->args[0] == "edituser") { $controller = new Controller_Users_Edituser(); $controller->index(); } } else { $controller = new Controller_Users_List(); $controller->index(); } }
public function index() { $this->view->setLeftContent($this->view->render("left_users", array())); if (isset($this->args[0])) { if ($this->args[0] == "addgroup") { Controller_Users_Addgroup::index(); } elseif ($this->args[0] == "admin") { Controller_Users_Admin::index(); } elseif ($this->args[0] == "structure") { Controller_Users_Structure::index(); } elseif ($this->args[0] == "editgroup") { Controller_Users_Editgroup::index(); } elseif ($this->args[0] == "adduser") { Controller_Users_Adduser::index(); } elseif ($this->args[0] == "edituser") { Controller_Users_Edituser::index(); } elseif ($this->args[0] == "tasks") { Controller_Users_Tasks::index(); } } else { Controller_Users_List::index(); } }