1、在mysql数据库,创建一张userdata数据表,在数据表内插入多条数据。
3、在index控制器中,创建一个getall()方法,在方法内,实例化userdata模型。
5、在getall()方法内,再使用print_r输出数组。