[eluser]杨帅[/eluser]
i got a "syntax error, unexpected T_OBJECT_OPERATOR" error, and i searched the forum, now i know it's because the php4 not allow method chaining. i shouldn't use the syntax such as
Code:
$this->db->orderby()
in my php4 web server.
instead of the upper one ,i should use
Code:
$db=$this->db;
$db->orderby();
but i searched the source of codeigniter , i found lots of statement such as:
Code:
if ($this->CI->db->cachedir == '')
return $this->CI->db->cache_off();
$path = $this->CI->db->cachedir;
if ($this->CI->db->db_debug)
return $this->CI->db->display_error('db_invalid_cache_path');
is this method chaining? i donno whecher it can run property in php4 server. anybody know this? great thanks.