method incl documentation in bbn\Mvc\Controller

This will include a file from within the controller's path. Chainable

function($file_name) { if ($this->exists()) { $d = X::dirname($this->_file) . '/'; if (substr($file_name, -4) !== '.php') { $file_name .= '.php'; } if ((strpos($file_name, '..') === false) && file_exists($d . $file_name)) { $bbn_path = $d . $file_name; unset($d, $file_name); include $bbn_path; } } return $this; }

This will include a file from within the controller's path. Chainable 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.