Php AjaX with Smarty Templates 0.0.2
Php AjaX with Smarty Templates (PAXT) is a library built on top of the HTML_AJAX package and using Smarty templates. Download paxt
|
|||||||||||||||||||
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 ...
tags
Download Php AjaX with Smarty Templates 0.0.2
Authors software
|
|
Similar software
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Other software in this category
|
|
|
|
|
|
|
|
|
|
Featured Software
jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java
Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser
GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell
- Communications
- Database
- Desktop Environment
- Games
- Internet
- Multimedia
- Office
- Programming
- Science and Engineering
- System
- Text Editing&Processing
