method setPrepath documentation in bbn\Mvc\Environment

function($path) { $path = X::removeEmpty(explode('/', $path)); if (\count($path)) { foreach ($path as $p) { if (!empty($this->_params[0]) && $this->_params[0] === $p) { array_shift($this->_params); $this->_url = substr($this->_url, \strlen($p) + 1); } else { throw new \Exception( X::_("The prepath $p doesn't seem to correspond to the current path {$this->_url}") ); } } } return true; }

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.