method getCurrentDir documentation in bbn\Mvc\Controller
Returns the current controller's directory name.
function()
{
if ($this->_path) {
$p = X::dirname($this->_path);
if ($p === '.') {
return '';
}
if (
($prepath = $this->getPrepath())
&& (strpos($p, $prepath) === 0)
) {
return substr($p, \strlen($prepath));
}
return $p;
}
return null;
}
Returns the current controller's directory name. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions