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.
New Class Names
We have renamed and added a few new classes and methods in order to make the framework a lot more flexible and extensible:
- Raxan
- RaxanBase
- RaxanClientExtension
- RaxanClientVariable
- RaxanDataSanitizer
- RaxanDataStorage
- RaxanDateTime
- RaxanDOMDocument
- RaxanElement
- RaxanPDO
- RaxanPlugin
- RaxanSessionStorage
- RaxanSysEvent
- RaxanUIElement
- RaxanWebPage
- RaxanWebPageEvent
- RaxanWebPageStorage
To use the old class name you can include the raxan/pdi/shared/deprecated.classes.php file inside you application.
Page Auto-Start
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');
Embedded HTML content
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
}
}
?>
Direct Element Access
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');
}
}
?>
Inline Event Binding
- Less coding required to bind an event to a method on the page
- Supports Synchronous and Asynchronous Post Backs
State Management
- Preserves element state
- State can be Local or Global
Ajax Auto Update
- Automatically update modified elements via Ajax callback
- Periodically update one or more elements on a web page
See Timeout Events for more information.
Master Template
- Maintain consistent Look and Feel across pages
- Easily change the design of a web page without modifying its content
- Build reusable theme for web sites and applications
Other changes
- Degradable Web Pages - supports degradable Ajax forms
- New event driven Plugin Architecture
- New Data Storage API for Page and Session data
- Several minor bug fixes
Continue Reading
To learn more about the framework, visit the Raxan User Guide
Release Notes
For more information on what was change see the Change Log