我的PHP Code
:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class admin extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->helper('ajax');
}
private $password = 'password';
private $login_details = array(
'username' => 'username',
'password' => sha1('salt'.$this->password)
);
以上code
返回以下PHP
错误:
Parse error: syntax error, unexpected '(', expecting ')'
我正在使用codeigniter,但我认为这与问题无关,因为它基于PHP...