【CI框架,表述提交没有反应,这是为什么呢】教程文章相关的互联网学习教程文章

ci框架上传文件有关问题

ci框架上传文件问题PHP codefunction do_upload(){$config[upload_path] = base_url().img/;$config[allowed_types] = gif|jpg|png;$config[max_size] = 100;$config[max_width] = 1024;$config[max_height] = 768;$this->load->library(upload, $config);if ( ! $this->upload->do_upload()){$error = array(error => $this->upload->display_errors());$this->load->view(admin/upload_form, $error);} else{$data = array(upl...

ci框架连接数据遇到有关问题

ci框架连接数据遇到问题我确定config中的database.php链接参数配置没有问题,而且在aotoload.php中加入如下代码,$autoload['libraries'] = array('database');然后我在 model中 PHP code<?php class Mhome extends Model{function __construct(){parent::__construct();// $this->load->database();}function get_category(){$query = $this->db->query("select * from category");return $query->result();} } 在浏览器中运行...

PHPExcel施用的常用说明以及把PHPExcel整合进CI框架

PHPExcel使用的常用说明以及把PHPExcel整合进CI框架excel的写入与生成操作: include PHPExcel.php; include PHPExcel/Writer/Excel2007.php; //或者include PHPExcel/Writer/Excel5.php; 用于输出.xls的 include PHPExcel/IOFactory.php;//phpexcel工厂类 //创建一个excel $objPHPExcel = new PHPExcel(); //保存excel―2007格式 $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel); //也可以使用 //$objWriter = PHPExce...

初学者问一个CI框架的有关问题

菜鸟问一个CI框架的问题一个form,提交给控制器做处理后,通过$this->load->view('view', $data, true);将数据返回给原view,view在接到数据后怎么样更新显示?是不是不行,不能填true?------解决方案--------------------$str = $this->load->view('view', $data, true); // 返回HTML到一个字符串。我觉得对生成静态有帮助,哈哈。一般就直接 $this->load->view('view', $data);// 这样就可以了。 ------解决方案---------------...

CI框架怎么设置跳转的提示语句

CI框架如何设置跳转的提示语句?做一个注册页面,注册后跳转到首页,用redirect('/index.php','location');现在想在注册成功后加个“注册成功”的提示再掉转到首页该怎么做?------解决方案-------------------- 探讨做一个注册页面,注册后跳转到首页,用redirect(/index.php,location);现在想在注册成功后加个“注册成功”的提示再掉转到首页该怎么做? ------解决方案--------------------探讨引用:做一个注册页面,注册后跳转到...

CI框架里用pChart作报表数组不好识别

CI框架里用pChart做报表数组不好识别这是查询的代码 $array1[0]= $this->db->query('select count(customer_id) '.$str2.' where bl_salesman_id='.$_POST["EmployeeId"]." and year(create_time)='2012' and month(create_time)='01'"); $array1[1]= $this->db->query('select count(customer_id) '.$str2.' where bl_salesman_id='.$_POST["EmployeeId"]." and year(create_time)='2012' and month(create_time)='02'")...

CI框架施用

CI框架使用刚学CI框架,不会配置那个地址,不知道怎么运行程序------解决方案-------------------- codeigniter.org.cn里面有你想要的

第一回用CI框架写MODEL层

第一次用CI框架写MODEL层第一次用CI框架写model,不知道对不对,麻烦大家看一下...谢谢啦class Article_model extends CI_Model {function __construct(){parent::__construct();$this->load->model('modelDB');}function select_article($time,$name,$lable,$type,$details,$URL,$img){$sql=$this->db->where('articleType',$type);$art=$this->get('article');//$q="select * from article where ";if($sql->num_rows >0){return...

PHP轨范(基于CI框架)

PHP规范(基于CI框架)规范内容是基于CI的框架和目前项目的需求。详细信息建文档。

CI框架源码翻阅-系统常量文件constants.php

CI框架源码阅读---------系统常量文件constants.php文件位置:Location: ./application/config/constants.php 配置系统常量 1、当文件系统工作的时候检查并配置这些首选项 文件系统运行的时候这些默认的会适当的增加系统的安全性,但是在php或apache的底层单独的为每各用户开一个进程的时候,使用八进制的永远是正确的 FILE_READ_MODE 读取文件的模式 FILE_WRITE_MODE 写入文件的模式 DIR_READ_MODE 读取目录的模式 DIR_WRITE_...

CI框架源码翻阅-基准测试类Benchmark.php

CI框架源码阅读---------基准测试类Benchmark.php<?php if ( ! defined(BASEPATH)) exit(No direct script access allowed); /*** CodeIgniter** An open source application development framework for PHP 5.1.6 or newer** @package CodeIgniter* @author ExpressionEngine Dev Team* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.* @license http://codeigniter.com/user_guide/license.html* @link http://code...

CI框架源码阅览-钩子类hooks.php

CI框架源码阅读---------钩子类hooks.php<?php if ( ! defined(BASEPATH)) exit(No direct script access allowed); /*** CodeIgniter** An open source application development framework for PHP 5.1.6 or newer** @package CodeIgniter* @author ExpressionEngine Dev Team* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.* @license http://codeigniter.com/user_guide/license.html* @link http://codeigniter....

CI框架源码翻阅-Router.php

CI框架源码阅读---------Router.php<?php if ( ! defined(BASEPATH)) exit(No direct script access allowed); /*** CodeIgniter** An open source application development framework for PHP 5.1.6 or newer** @package CodeIgniter* @author ExpressionEngine Dev Team* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.* @license http://codeigniter.com/user_guide/license.html* @link http://codeigniter.com* ...

CI框架源码翻阅-URI.php

CI框架源码阅读---------URI.php<?php if ( ! defined(BASEPATH)) exit(No direct script access allowed); /*** CodeIgniter** An open source application development framework for PHP 5.1.6 or newer** @package CodeIgniter* @author ExpressionEngine Dev Team* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.* @license http://codeigniter.com/user_guide/license.html* @link http://codeigniter.com* @si...

CI框架源码翻阅-Config.php

CI框架源码阅读---------Config.php文件地址:./system/core/Config.php 主要作用:管理配置 1.成员属性$config 所有已加载配置的的列表 2.成员属性$is_loaded 所有加载配置文件的列表 3.成员属性$_config_paths 当需要加载配置文件的时候搜索路径的列表 4.__construct() 构造方法程序会首先自动执行这个方法 它所做的内容主要有两个 a)获取配置赋给成员属性$config b)设置配置中的base_url 5.load($file = '', $use_sections = F...

框架 - 相关标签