Пример #1
0
//--------------------------------------------------------------------------------------------------
// PREV_URL
//--------------------------------------------------------------------------------------------------
//
// @return example.com/prev
//
//--------------------------------------------------------------------------------------------------
define('PREV_URL', prevUrl());
//--------------------------------------------------------------------------------------------------
// HOST_URL
//--------------------------------------------------------------------------------------------------
//
// @return hostname
//
//--------------------------------------------------------------------------------------------------
define('HOST_URL', hostUrl());
//--------------------------------------------------------------------------------------------------
// BASE_PATH
//--------------------------------------------------------------------------------------------------
//
// @return example.com/
//
//--------------------------------------------------------------------------------------------------
define('BASE_PATH', basePath());
//--------------------------------------------------------------------------------------------------
// CURRENT_PATH
//--------------------------------------------------------------------------------------------------
//
// @return current/
//
//--------------------------------------------------------------------------------------------------
Пример #2
0
 public function host(string $uri = '') : string
 {
     return hostUrl($uri);
 }