method addInc documentation in bbn\Mvc

Adds a property to the MVC object inc if it has not been declared.

function(string $name, object $obj) { if (isset($this->inc->{$name})) { throw new \Exception(X::_("Impossible to add twice the same property (%s) to inc", $name)); } $this->inc->{$name} = $obj; }

Adds a property to the MVC object inc if it has not been declared. 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.