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.
To learn more about the framework, visit the Raxan for PHP Overview web page
For more information on what was change see the Change Log