Pionia Core

PathsTrait

Table of Contents

Methods

appRoot()  : string
The root folder of the application.
envPath()  : string
getDirFor()  : string|null
Get the directory for a given alias
mediaPath()  : string
The path to the resources directory.
phpPath()  : string
phpVersion()  : string
publicPath()  : string
The directory where the frontend assets are stored.

Methods

appRoot()

The root folder of the application.

public appRoot([string|null $path = null ][, int $levels = 3 ]) : string
Parameters
$path : string|null = null
$levels : int = 3
Return values
string

envPath()

public envPath([string|null $path = null ]) : string
Parameters
$path : string|null = null
Return values
string

getDirFor()

Get the directory for a given alias

public getDirFor(string $aliasName) : string|null
Parameters
$aliasName : string
Return values
string|null

mediaPath()

The path to the resources directory.

public mediaPath() : string
Return values
string

phpPath()

public phpPath() : string
Return values
string

phpVersion()

public phpVersion() : string
Return values
string

publicPath()

The directory where the frontend assets are stored.

public publicPath([ $path = null ]) : string
Parameters
$path : = null
Return values
string

        
On this page

Search results