public function newreg()
{
$username = $this->input->post('username');
$password = $this->input->post('password');
$this->load->model('register_model');
$data['list']=$this->register_model->add($username, $password);
$this->load->view('register_display', $data);
}
这是名为 register.php 的控制器的一部分
一旦调用这个函数,我在屏幕上看到的就是空白。
该函数是来自工作控制器的工作函数的精确副本。仅更改文件名(模型、视图)
我不知道问题出在哪里。
您可以通过启用来轻松检查整个环境中发生的情况CI logs,
go to config/config.php并编辑此:
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 0; //put this to 4