난이 URL에 대한 자습서 다음있어 내 프로그램에서 오류 3 입력 상자 (회사 이름, 사용자 이름으로 로그인 폼 , 암호) 이하 나는 verifylogin.php에 관한 문제가 발생했습니다 모든 지침을 크게 고맙게 생각합니다.CodeIgniter의
<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class VerifyLogin extends CI_Controller
{
public function __construct()
{ parent::__construct();
}
public function index()
{
$config_login = array(
array(
'field' => 'company',
'label' => 'Company',
'rules' => 'trim|required|min_length[1]|max_length[50]|strip_tags|encode_php_tags|htmlspecialchars|xss_clean'
),
array(
'field' => 'username',
'label' => 'Username',
'rules' => 'trim|required|min_length[1]|max_length[50]|strip_tags|encode_php_tags|htmlspecialchars|xss_clean'
),
array(
'field' => 'password',
'label' => 'Password',
'rules' => 'required|xss_clean|callback__check_database'
)
);
$this -> form_validation -> set_rules($config_login);
예. 문제가 해결 된 후 $ config를 $ config_login으로 변경합니다. 많은 도움을 주셔서 감사합니다. 모든 곳 조건이 좋아하는
$의 설정을하는 데 도움이 희망
로 로그인을 변경할 이미 "응용 프로그램/설정/config.php에"설정 전역 변수입니다. 변수의 이름을 변경하면 괜찮을 것입니다. 여기를 클릭하여 액세스하십시오. http://ellislab.com/codeigniter/user-guide/libraries/config.html –Dominic이 맞습니다. $ config는 [CodeIgniter의 예약 변수] (http://ellislab.com/codeigniter/user-guide/general/reserved_names.html)입니다. – AMYunus