W3cubDocs

/CakePHP 3.4

Trait FileConfigTrait

Trait providing utility methods for file based config engines.

Direct Users

Properties summary

  • $_path protected
    string
    The path this engine finds files on.

Method Summary

Method Detail

_getFilePath()source protected

_getFilePath( string $key , boolean $checkExists false )

Get file path

Parameters

string $key

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

boolean $checkExists optional false
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.


Properties detail

$_pathsource

protected string

The path this engine finds files on.

''

© 2005–2017 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/3.4/class-Cake.Core.Configure.FileConfigTrait.html