我对 PHP 很陌生,我收到了这个错误(我使用 Code Igniter)。我注意到人们已经问过和我一样的问题,但我仍然不明白答案。
Unable to load the requested file: user_form_v.php
这是我add()
在控制器中的功能:
function add(){
//set common properties
$data['title'] = 'Tambah User baru';
$data['action'] = site_url('user/add');
$data['link_back'] = anchor('user/index/', 'Back to User list', array('class'=>'back'));
$this->_set_rules();
//run validation
if($this->form_validation->run() == false){
$data['message'] = '';
//set common properties
$data['title'] = 'Add new User';
//$data['message'] = '';
$data['user']['ID_user'] = '';
$data['user']['nama'] = '';
$data['user']['email'] = '';
$data['user']['active'] = '';
$data['link_back'] = anchor('user/index/', 'Lihat daftar User', array('class'=>'back'));
$this->load->view('user_form_v', $data);
}
这里发生了什么?
更新 抱歉,我的名字中有一个额外的空格,所以它变成了 user_list_v .php,仅此而已:D