Fr3nch13/CakePHP Utilities

FileConfigTrait

Trait providing utility methods for file based config engines.

Table of Contents

Properties

$_path  : string
The path this engine finds files on.

Methods

_getFilePath()  : string
Get file path

Properties

$_path

The path this engine finds files on.

protected string $_path = ''

Methods

_getFilePath()

Get file path

protected _getFilePath(string $key[, bool $checkExists = false ]) : string
Parameters
$key : string

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

$checkExists : bool = false

Whether to check if file exists. Defaults to false.

Tags
throws
CakeException

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

Return values
string

Full file path


        
On this page

Search results