Tigermouse
November 17th, 2007 Arsen Posted in Patterns - PHP |
Tigermouse is object oriented, LGPL licensed PHP/AJAX framework for development of highly interactive web applications in MVC architecture. Its main principle is to be as much client side processing independent as it is possible to provide high reliability and stability. It requires no to little Javascript coding, no manual callbacks handling and no configuration. Noteworthy features are:
- full native AJAX support with queuing and expiring
- MVC architecture
- pluggable input/output filters
- powerful ActiveRecord implementation
- SWT-, Qt- or GTK#-like user interface implementation
- extensible i18n support
- native support for Smarty templates
- built-in development tools
Tigermouse is much more than just a library for binding PHP classes or functions to Javascript ones. It is an abstraction layer that can help you forget about all this mess: XMLHttpRequest, callbacks and URL parameters. See example calculator application in tigermouse:
class MainCtrl extends Ctrl {
public function show() {
$f = new Form();
$f->add(new Input('a'));
$f->add(new Input('b'));
$compute = new Button('compute');
$compute->addListener(
new ClickListener(
new Action('MainCtr/compute', $f->valueReader())
)
);
$f->add($compute);
$f->add(new Label('result'));
return $f;
}
public function compute(FormContext $cx) {
$label = new Label('result');
$label->text = $cx->a + $cx->b;
return $label;
}
}
That’s it. No Javascript as promised.
Leave a Reply