method output documentation in bbn\Mvc

function() { if ($this->check() && $this->controller) { $obj = $this->controller->get(); if ($this->isCli()) { if (isset($obj->content)) { echo $obj->content; } exit(); } if (\is_array($obj)) { $obj = X::toObject($obj); } if ((\gettype($obj) !== 'object') || (\get_class($obj) !== 'stdClass')) { throw new \Exception(X::_("Unexpected output: " . \gettype($obj))); } if ($this->obj && X::countProperties($this->obj)) { $obj = X::mergeObjects($obj, $this->obj); } $output = new Output($obj, $this->getMode()); $output->run(); } else { Output::statusHeader(404); } }

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.