To call the parent __construct() from an overridden constructor:
public function __construct() { $args = func_get_args(); call_user_func_array(array(get_parent_class($this), '__construct'), $args); // do other stuff }
Post a Comment
No comments:
Post a Comment