method addToObj documentation in bbn\Mvc\Controller
Creates a new Controller instance and merges it's object with the existing one.
function(string $path, $data = [], $internal = false)
{
if (substr($path, 0, 2) === './') {
$path = $this->getCurrentDir() . substr($path, 1);
}
if ($route = $this->_mvc->getRoute($path, $internal ? 'private' : 'public')) {
$o = new Controller($this->_mvc, $route, $data);
$o->process();
$this->obj = X::mergeObjects($this->obj, $o->obj);
}
else {
throw new \Error(X::_("Impossible to route the following request") . ': ' . $path);
}
return $this;
}
Creates a new Controller instance and merges it's object with the existing one. 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