public function __construct()
{
$args = func_get_args();
if (empty($args[0])) {
$args[0] = array();
}
$this->_data = $args[0];
$this->_construct();
}
instead, do...
public function __construct($data = array())
{
$this->_data = $data;
$this->_construct();
}
No comments:
Post a Comment