method getJs documentation in bbn\Mvc\Controller

This will get a javascript view encapsulated in an anonymous function for embedding in HTML

from a path.

function($path = '', array $data = NULL, $encapsulated = true) { $params = func_get_args(); // The model can be set as first argument if the path is default if (\is_array($path)) { // In which case the second argument, if defined, is $encapsulated if (array_key_exists(1, $params)) { $encapsulated = $data; } $data = $path; $path = ''; } if ($r = $this->getView($path, 'js', $data)) { return ''; } return false; }

This will get a javascript view encapsulated in an anonymous function for embedding in HTML 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.