I was wondering if there are any difference between
function __construct()
{
parent::__construct();
$this->load-> helper('file');
}
this inside one of my controller file vs
$autoload['helper'] = array('file');
in terms of best practices.
For the 2nd option, would it slow down the application just a little bit because these helper functions may be used where it may not be needed (say half the application).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…