Layer: Core · Source: lib/core/ApiHelper.php:20 (lines 20–48)
class ApiHelper
ApiHelper
Shared static helpers for the REST API layer. Centralizes app URL resolution so that config.php is read exactly once and cached via Registry.
| Tag | Value |
|---|---|
@category | Core Class |
@author | Blogware Team |
@license | MIT |
@version | 1.0 |
@since | Since Release 1.0 |
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public static | getAppUrl() | Get the application base URL. | 31 |
public static function getAppUrl()
lines 31–47 (17)
Get the application base URL.
Reads from config.php and caches the result in Registry under the key 'app_url' so that every caller uses the same resolved value.
Takes no parameters.
Returns: (none declared) — string
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.