Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Note
titleContent Freeze

As of July 25th, 2023, there is a content freeze on this page.

Launching a PHP controller from the Profound UI HTTP Server Instance

...

The start.html file must correctly point to the profoundui.css and runtime.js files.  It will look something like this:

Code Block
html
html

<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Profound UI Example - Running Locally</title>
  <link href="profoundui.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="runtime.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      pui.start();
    };
  </script>
</head>

<body>
  <div id="pui"></div>
</body>

</html>

...

You may choose to rename the start.html file to something else and hard-code the controller inside the HTML code.  For example, if you rename start.html to index.html and change the code as illustrated below, you may be able to launch the application by simply using http://localhost.

Code Block
html
html

<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Profound UI Example - Running Locally</title>
  <link href="profoundui.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="runtime.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      pui.controller = "myscript.php";
      pui.start();
    };
  </script>
</head>

<body>
  <div id="pui"></div>
</body>

</html>

...