method getView documentation in bbn\Mvc

This will get a view.

function(string $path, string $mode = 'html', array $data = NULL) { if (!router::isMode($mode) || !($path = Router::parse($path))) { throw new \Exception( X::_("Incorrect mode $path $mode") ); } $view = null; if ($this->hasView($path, $mode)) { $view = self::$_loaded_views[$mode][$path]; } elseif ($info = $this->router->route($path, $mode)) { $view = new View($info); $this->addToViews($path, $mode, $view); } if (\is_object($view) && $view->check()) { return $view->get($data); } return ''; }

This will get a view. 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.