• PHP reference
  • Helpers


class Application

Application information


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


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.


  • string $type
  • boolean $end_slash

Return Value

  • string

final static Application instance()

Get instance.

Return Value