private function _getFilePath($file, $type)
	{
		// Validate the type of file is supported
		if (!in_array($type, array('page', 'template', 'fragment', 'config'))) {
			throw new FemtoException("The type of file '{$type}' is not supported by Femto");
		}

		// Stop people trying anything clever with file paths
		$file = str_replace('..', '', $file);

		// Pluralise the type unless it's a config
		$type = $type === 'config' ? $type : "{$type}s";

		// Return the appropriate file path
		return "{$this->_app_root}/{$type}/{$file}.php";
	}