ICanBoogie/ICanBoogie v2.3.1
  • Namespace
  • Function

Namespaces

  • ICanBoogie
    • Autoconfig
    • Core
    • HTTP
      • Dispatcher
    • Session

Classes

  • Core
  • Debug
  • Helpers
  • Logger
  • LogLevel
  • Session

Interfaces

  • LoggerInterface

Traits

  • LoggerTrait

Exceptions

  • AlreadyAuthenticated
  • AuthenticationRequired
  • CoreAlreadyBooted
  • CoreAlreadyInstantiated
  • CoreNotInstantiated
  • PermissionRequired
  • SecurityException

Constants

  • TOKEN_ALPHA
  • TOKEN_ALPHA_UPCASE
  • TOKEN_NUMERIC
  • TOKEN_SYMBOL
  • TOKEN_SYMBOL_WIDE

Functions

  • app
  • boot
  • excerpt
  • generate_token
  • generate_token_wide
  • get_autoconfig
  • log
  • log_error
  • log_info
  • log_success
  • log_time
  • normalize_namespace_part
  • pbkdf2
  • resolve_app_paths
  • strip_root

Function resolve_app_paths

Resolves the paths where the application can look for config, locale, modules, and more.

Consider an application root directory with the following directories:

all
cli
default
fr
icanboogie.fr
localhost
org

The directory "all" contains resources that are shared between all the sites. It is always added if it is present. The directory "default" is only used if a directory matching $server_name cannot be found. The directory "cli" is used when the application is ran from the CLI.

To resolve the matching directory, $server_name is first broken into parts and the most specific ones are removed until a corresponding directory is found. For instance, given the server name "www.icanboogie.localhost", the following directories are tried: "www.icanboogie.localhost", "icanboogie.localhost", and finally "localhost".

Namespace: ICanBoogie
Located at

Parameters summary

string $root The absolute path of a root directory.
string|null $server_name = null <p>A server name. If <code>$server_name</code> is <code>null</code>, it is resolved from <code>PHP_SAPI</code> and <code>$_SERVER['SERVER_NAME']</code>. If <code>PHP_SAPI</code> equals "cli", then "cli" is used, otherwise <code>$_SERVER['SERVER_NAME']</code> is used.</p>

Return value summary

string[]

An array of absolute paths, ordered from the less specific to the most specific.

ICanBoogie/ICanBoogie v2.3.1 API documentation generated by ApiGen