W3cubDocs

/CakePHP 4.1

Trait FileConfigTrait

Trait providing utility methods for file based config engines.

Namespace: Cake\Core\Configure

Properties summary

  • $_path protected
    string

    The path this engine finds files on.

Method Summary

Method Detail

_getFilePath() protected

_getFilePath(string $key, bool $checkExists)

Get file path

Parameters

string $key

The identifier to write to. If the key has a . it will be treated as a plugin prefix.

bool $checkExists optional

Whether to check if file exists. Defaults to false.

Returns

string

Full file path

Throws

Cake\Core\Exception\Exception
When files don't exist or when files contain '..' as this could lead to abusive reads.

Property Detail

$_path protected

The path this engine finds files on.

Type

string

© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/trait-Cake.Core.Configure.FileConfigTrait.html