Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full Ajax PHP MVC Framework

I want to create a website. I want to use Ajax for every hyperlink and form. I wanted to use jquery but it is hard to create a general code for every link. I want to know if there is any PHP MVC Framewrok which works with ajax? thanx.

like image 281
AliBZ Avatar asked Dec 02 '10 10:12

AliBZ


1 Answers

@Kenan, There wasn't in december but now there is Agile Toolkit. It's open source too.

The way how it works is you put a "View" on your "Page" and then can manipulate with it through javascript. So here is example:

$view=$page->add('LoremIpsum');
$button=$page->add('Button')->setLabel('Reload Ipsum');

$button->js('click', $view->js()->reload());

Clicking button would use AJAX to reload the section of the page.

Please comment and let me know what if this is what you were looking for. As a contributor i'm interested.

like image 145
romaninsh Avatar answered Sep 22 '22 05:09

romaninsh