摘要: $this->input->post() $this->input->get() echo $this->uri->segment();//控制器为1;方法为2;后面带的参数以此类推get获取值 阅读全文
posted @ 2017-05-23 09:37 武小帅 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 设置你自己的路由规则 路由规则定义在 application/config/routes.php 文件中,在这个文件中你会 发现一个名为 $route 的数组,利用它你可以设置你自己的路由规则。 在路由规则中你可以使用通配符或正则表达式。 (:num) 匹配只含有数字的一段。 (:any) 匹配含有 阅读全文
posted @ 2017-05-23 09:09 武小帅 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 增: 删: 改: 查: 阅读全文
posted @ 2017-05-23 09:04 武小帅 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 数据库配置——连接数据库(test)下的表单(user): 修改配置文件目录 application/config/database.php $active_group = 'default';$active_record = TRUE; $db['default']['hostname'] = ' 阅读全文
posted @ 2017-05-23 09:01 武小帅 阅读(497) 评论(0) 推荐(0) 编辑