Ejemplo n.º 1
0
 public function manage($page = 1)
 {
     $this->authority(10);
     $user_table = new UserTable();
     $count = $user_table->count();
     $page = Util::calculate_page($count, 10, $page);
     $users = $user_table->select_ten($page['start_num']);
     $user_type_table = new UserTypeTable();
     $types = $user_type_table->select_all();
     $view_data = array('users' => $users, 'page' => $page, 'types' => $types);
     $this->my_render('manage', $view_data);
 }