method includePhpView documentation in bbn\Mvc

function($bbn_inc_file, $bbn_inc_content, array $bbn_inc_data = []) { $randoms = []; $_random = function ($i) use (&$randoms) { if (!isset($randoms[$i])) { $randoms[$i] = md5(Str::genpwd()); } return $randoms[$i]; }; $fn = function () use ($bbn_inc_file, $bbn_inc_content, $bbn_inc_data, $_random) { if ($bbn_inc_content) { ob_start(); if (\count($bbn_inc_data)) { foreach ($bbn_inc_data as $bbn_inc_key => $bbn_inc_val) { $$bbn_inc_key = $bbn_inc_val; } unset($bbn_inc_key, $bbn_inc_val); } unset($bbn_inc_data); /* try { eval('?>'.$bbn_inc_content); } catch (\Exception $e){ //error_log($e->getMessage()); X::logError($e->getCode(), , $bbn_inc_file, 1); } */ eval('use bbn\X as xx; use bbn\Str as st; ?>' . $bbn_inc_content); $c = ob_get_contents(); ob_end_clean(); return $c; } return ''; }; return $fn(); }

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.