...
If default settings are used, the above myscript.php file would be stored in the /www/zendcorezendsvr/htdocs/profoundui IFS directory.
...
Some Profound UI widgets use images (located here: /www/profoundui/htdocs/profoundui/proddata/images) and potentially other resources shipped with Profound UI. Depending Depending on which widgets your applications utilizesutilize, these resources must be copied in addition to the 3 files mentioned above. When you copy these, you must maintain the same directory structure in your destination environment. For example, images must be accessible via the relative URL /profoundui/proddata/images.
The start.html file must correctly point to the profoundui.css and runtime.js files. It will look something like this:
Code Block | ||||
---|---|---|---|---|
| ||||
<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 can launch the application from the destination environment by bring up the start.html file and passing the controller parameter. For example: http://localhost/start.html?controller=myscript.php. The example assumes that the myscript.php controller is located in the same directory as the start.html fiefile.
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 will may be able to launch the application by simply using http://localhost.
Code Block | ||||
---|---|---|---|---|
| ||||
<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> |
...