classes/Kohana/Element.php
protected static function _get_element_config($config)
	{
		if (Kohana::find_file('config'.DIRECTORY_SEPARATOR.self::CONFIG_DIR, $config) === FALSE) {
			throw new Kohana_Exception('Element configuration file ":path" not found!', [
				':path' => APPPATH.'config'.DIRECTORY_SEPARATOR.self::CONFIG_DIR.DIRECTORY_SEPARATOR.$config.EXT
			]);
		}

		return Kohana::$config->load(self::CONFIG_DIR.DIRECTORY_SEPARATOR.$config)
			->as_array();
	}
protected static function _get_element_config($config)
	{
		if (Kohana::find_file('config'.DIRECTORY_SEPARATOR.self::CONFIG_DIR, $config) === FALSE) {
			throw new Kohana_Exception('Element configuration file ":path" not found!', [
				':path' => APPPATH.'config'.DIRECTORY_SEPARATOR.self::CONFIG_DIR.DIRECTORY_SEPARATOR.$config.EXT
			]);
		}

		return Kohana::$config->load(self::CONFIG_DIR.DIRECTORY_SEPARATOR.$config)
			->as_array();
	}
protected static function _get_element_config ( $ config ) { if ( Kohana :: find_file ( 'config' . DIRECTORY_SEPARATOR . self :: CONFIG_DIR , $ config ) === FALSE ) { throw new Kohana_Exception ( 'Element configuration file ":path" not found!' , [ ':path' => APPPATH . 'config' . DIRECTORY_SEPARATOR . self :: CONFIG_DIR . DIRECTORY_SEPARATOR . $ config . EXT ] ) ; } return Kohana :: $ config -> load ( self :: CONFIG_DIR . DIRECTORY_SEPARATOR . $ config ) -> as_array ( ) ; }
Read Element configuration file

@param string $config File name in config/navigation dir
@return array Element configuration array
@throws Kohana_Exception
Read Element configuration file