Php AjaX with Smarty Templates 0.0.2 review

Download
by rbytes.net on

Php AjaX with Smarty Templates (PAXT) is a library built on top of the HTML_AJAX package and using Smarty templates. Download paxt

License: GPL (GNU General Public License)
File size: 0K
Developer: maho
0 stars award from rbytes.net

Php AjaX with Smarty Templates (PAXT) is a library built on top of the HTML_AJAX package and using Smarty templates.

Download paxt and put it somewhere you can include it (eg. add it to your include path, or you will include it via it's path)

classes.php

include paxt widget class
< ?
require_once "paxt/lib/widget.class.php";
require_once "paxt/lib/server.class.php";
? >


define main class

derived from widget? class
< ?
class myindex extends widget {
function __construct() {
$this->template="myindex.html";
$this->exportMethod("launch");//export $this->launch to be used from javascript
parent::__construct(true);//main widget always is fully instantiated
}

function launch() {
return $this->launchWindow(new launched(true));
}
}
? >

define second class

, which will be launched by myindex
< ?
class launched extends widget {
function __construct($parent=null) {
$this->template="launched.html";
parent::__construct($parent);

if ($parent) {
$this->data->variable = $this->modal_parent->data->variable;
}
}
}
? >

index.php5

create file index.php5, which will be gate to your application
include your classes
< ?
require_once "classes.php";
? >

start session

object will be stored in sessions
< ?
session_start();
?>

create server object

and give name of first page ...

Php AjaX with Smarty Templates 0.0.2 keywords