超级对象 

$this 

当前的控制器对象 有很多属性

$this->load    装载器类的实例在systme/core/loader.php  里面有view方法

$obj = new CI_Loader();

$this->load = $obj 

$this->load->view() 

vars()

database()装载数据库对象 

model()装载模型对象 

helper()加载帮助

ci里面pathinfo不起作用

 

$this->uri->segment(4)

index.php/user/index/5/6

system/core/input.php 

$this->input->post('username')

$this->input->server(“DOCUMENT_ROOT”)等价 $_SERVER

 

相关文章:

  • 2021-08-12
  • 2022-12-23
  • 2021-11-22
  • 2021-09-17
  • 2021-05-15
  • 2022-02-21
  • 2021-07-23
  • 2022-01-23
猜你喜欢
  • 2021-10-09
  • 2021-05-27
  • 2021-06-26
  • 2021-07-22
  • 2021-11-15
  • 2021-07-26
相关资源
相似解决方案