What's included:1 - A web server running PHP5 is required. See Software Requirements
PHP examples require a web server running PHP 5.1 or higher. Before running the examples you will need to create a gateway config file or copy the "pdi-examples/gateway.config.php" file to the "raxan/pdi/" folder. The Contact List and ShoutBox examples will require the necessary permissions to read/write to the pdi-examples in order to create/update the SQLite database.
What's New and Noteworthy:
Raxan Beta 3 makes it a lot easier to building rich web applications. In this release we have made a lot of changes to the API to make it easier to build applications and website.
We have renamed and added a few new classes and methods in order to make the framework a lot more flexible and extensible:
To use the old class name you can include the raxan/pdi/shared/deprecated.classes.php file inside you application.
The new Page Auto-Start feature makes it possible for Raxan to automatically detect and initialize your page class. All you have to do is to include the raxan/pdi/autostart/.php file at the top of your web page:
<?php require_once("raxan/pdi/autostart.php"); ?>
<?php
class MyWebPage extends RaxanWebPage {
protected function _load() {
// some code here
}
}
?>
And if you don't want to use the Auto-Start feature then you can resort to doing things the old way by including the gateway.php file and calling RaxanWebPage::Init('PageClassName');
With the Auto-Start feature we have also made it a lot easier for developers to embedded html content inside a web page:
<?php require_once("raxan/pdi/autostart.php"); ?>
<p>You can add HTML your content here!</p>
<?php
class MyWebPage extends RaxanWebPage {
protected function _load() {
// some code here
}
}
?>
Or include the html content from a separate file:
<?php
require_once("raxan/pdi/autostart.php");
include_once "myhtmlcontent.html";
class MyWebPage extends RaxanWebPage {
protected function _load() {
// some code here
}
}
?>
Gain quick access to html elements from a web page by using the element's id ($this->elementId):
<?php require_once("raxan/pdi/autostart.php"); ?>
<div id="myid"></div>
<?php
class MyWebPage extends RaxanWebPage {
protected function _load() {
$this->myid->text('Hello World');
}
}
?>
See Timeout Events for more information.
For more information on what was change see the Change Log
Visit the Raxan for PHP Examples web page - A web server running PHP 5.1 or higher is required