method getExternalView documentation in bbn\Mvc

This will get a view from a different root.

function(string $full_path, string $mode = 'html', array $data = NULL) { if (!router::isMode($mode) && ($full_path = Str::parsePath($full_path))) { throw new \Exception( X::_("Incorrect mode $full_path $mode") ); } if (($this->getMode() === 'dom') && (!defined('BBN_DEFAULT_MODE') || (BBN_DEFAULT_MODE !== 'dom'))) { $full_path .= ($full_path === '' ? '' : '/') . 'index'; } $view = null; if ($this->hasView($full_path, $mode)) { $view = self::$_loaded_views[$mode][$full_path]; } elseif ($info = $this->router->route(X::basename($full_path), 'free-' . $mode, X::dirname($full_path))) { $view = new View($info); $this->addToViews($full_path, $mode, $view); } if (\is_object($view) && $view->check()) { return $view->get($data); } return ''; }

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