Skip to content
J-C HERON edited this page Mar 20, 2021 · 12 revisions

Ajax

Ajax integration

An instance of jQuery (phpMv-ui with semantic) is injected by default in the controllers (defined in config.php)

"di"=>[
		"@exec"=>array("jquery"=>function ($controller){
					return \Ubiquity\core\Framework::diSemantic($controller);
				})
	],

The $jquery property must be added in the javadoc of a controller to activate the code completion of your IDE on this injection:

 /**
  * @property JsUtils $jquery
  */
class MyController extends ControllerBase{}

Clone this wiki locally