baseDir

Navigation:  Development > Function Reference > Helpers > Config >

baseDir

Previous pageReturn to chapter overviewNext page

Return directory path of the project. See below example:

 

App::Config()->baseDir([Sub Part])

 

This function return path till "webroot"

 

Example:
// return /var/www/myproject/webroot

$location = App::Config()->baseDir();   
 

// return /var/www/myproject/webroot/uploads
$location = App::Config()->baseDir("/uploads"); 

 

See also: baseUrl filemanagerDir filemanagerUrl rootDir skinDir skinUrl