method add documentation in bbn\Mvc\Controller

Returns a new Controller instance with the given arguments.

function($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(); return $o; } return false; }

Returns a new Controller instance with the given arguments. 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.