메소드 |
설명 |
|
getAppRootDir ( ) : string |
Get the app dir |
|
getApplicationBaseDir ( ) : string |
Get the running application's base dir, usually the root where index.php is being run |
|
getConfigPath ( ) : string |
Get the config |
|
getFrontControllerPath ( ) : string |
Return the front controller path |
|
getHostName ( ) : string |
Get the server http host name |
|
getPublicAssetsPath ( ) : string |
Get the public assets |
|
getRootDir ( ) : string |
Root of Voodoo directory |
|
getServerName ( ) : string |
Return the server name |
|
getUrl ( ) : string |
Get the domain url |
|
getVoodooistPath ( ) |
|
|
isCLI ( ) : boolean |
Check if the SAPI is CLI or not |
|
isDev ( ) : boolean |
Check if DEV enviroment |
|
isHttps ( ) : boolean |
Check if the environment is under HTTPS |
|
isProduction ( ) : boolean |
Check if PRODUCTION enviroment |
|
isStaging ( ) : boolean |
Check if STAGING enviroment |
|
sessionStart ( ) |
To start a session if it's not active
Once set, you can use $_SESSION to work with your data |
|
set ( integer $env = self::DEV ) |
Set the environment we're working on. ie: DEV, PRODUCTION, STAGING |
|
setAppRootDir ( $rootDir ) |
Set the app dir |
|
setConfigPath ( string $dirName ) |
By default the config is under /App/_conf,
But you can have multiple environment like production, dev
So it would be placed under /App/_conf/production, /App/_conf/dev etc
$dirname is the subdirectory name, ie: production |
|
setFrontControllerPath ( $rootDir ) |
Set the front controller path, where the index will be created |
|
setPublicAssetsPath ( string $rootDir ) |
Set the public assets |
|