CI超级对象中的input输入类
$this->input
是CI_Input类的实例system/core/Input.php
CI_Input类提供的方法:
$this->input->post('username');//$_POST['username'];
$this->input->server('DOCUMENT_ROOT');//$_SERVER['DOCUMENT_ROOT'];
在视图中,直接用$this来访问超级对象的属性
<?php echo $this->input->server('DOCUMENT_ROOT');?>
你的指尖,有着改变世界的力量!
浙公网安备 33010602011771号