• PHP reference
  • Helpers

Application

class Application

Application information

Properties

boolean $release

Whether using release environment

string $environment

Environment identifier

string $host

Default hostname

string $domain

Default domain

string $domain_base

Default base domain

string $root

Absolute application root

string $path_cache

Cache path relative to root

Methods

static string root()

Return the application root.

Return Value

  • string

static string path(string $type = 'root', boolean $end_slash = true)

Get absolute path of a certain type. Always ends in a forwards slash.

Parameters

  • string $type
  • boolean $end_slash

Return Value

  • string

final static Application instance()

Get instance.

Return Value