public function before() { // Make sure we call the parent package before function parent::before(); // Load the config file for this package \Subpackage\Subconfig::subload(static::$_configFile, true); // Now set the view directory for this package static::$_viewPath = \Subpackage\Subconfig::get(static::$_configFile . '.view_directory'); }
public function before() { // Make sure we call the parent package before function parent::before(); // Load the config file for this package \Config::load('reports', true); // Now set the view directory for this package static::$_viewPath = \Config::get('reports.view_directory'); }