parent
44e7556cbd
commit
2e75aa780f
@ -1,12 +1,13 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* sends a react view to the user.
|
* sends a react view to the user client.
|
||||||
* @param string $url url of the react file to render
|
* @param string $url url of the react file to render
|
||||||
* @param array $arguments arguments to pass to the rendered react component
|
* @param array $arguments arguments to pass to the rendered react component
|
||||||
|
* The arguments must be a json-encodable key/value dictionary.
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function display_react_front(string $url, array $arguments) {
|
function send_react_front(string $url, array $arguments) {
|
||||||
// the $url and $argument values are used into the included file
|
// the $url and $argument values are used into the included file
|
||||||
require_once "react-display-file.php";
|
require_once "react-display-file.php";
|
||||||
}
|
}
|
Loading…
Reference in new issue