Do I have to put parent::__construct($config) in my CakePHP data source?
- by Angel S. Moreno
Is there a good reason to put
parent::__construct($config)
in the construct of a CakePHP data source I am developing? I see it being used in some of the data sources found in https://github.com/cakephp/datasources/blob/master/models/datasources/amazon_associates_source.php but not sure why. I could just do
private $_config = array();
function construct($config){
$this->_config = $config;
}
and access my $config the same way.