Module: provide getApplicationDir()
This commit is contained in:
parent
7a2824e070
commit
f9a0e7dec6
|
@ -51,6 +51,13 @@ class Module
|
|||
*/
|
||||
private $cssdir;
|
||||
|
||||
/**
|
||||
* Base application directory
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $appdir;
|
||||
|
||||
/**
|
||||
* Library directory
|
||||
*
|
||||
|
@ -244,6 +251,7 @@ class Module
|
|||
$this->jsdir = $basedir . '/public/js';
|
||||
$this->libdir = $basedir . '/library';
|
||||
$this->configdir = $app->getConfigDir('modules/' . $name);
|
||||
$this->appdir = $basedir . '/application';
|
||||
$this->localedir = $basedir . '/application/locale';
|
||||
$this->formdir = $basedir . '/application/forms';
|
||||
$this->controllerdir = $basedir . '/application/controllers';
|
||||
|
@ -739,6 +747,16 @@ class Module
|
|||
return $this->basedir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's application directory
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getApplicationDir()
|
||||
{
|
||||
return $this->appdir;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's library directory
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue