Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Framework with full jQuery integration? [closed]

i'm tired of reinventing the wheel on PHP and loving jQuery to death so which framework fits my needs?

like image 205
coma Avatar asked May 09 '09 07:05

coma


People also ask

Can PHP be used with jQuery?

All you need to do to use jQuery with PHP is to include the jQuery javascript file in your HTML document in the head tag. I actually use PHP along with jQuery all the time.

Do you have to use PHP with AJAX?

Ajax is just a technology to call server side scripts from Javascript. The server side script being PHP. So, if you intend to use Ajax, you need to know PHP. As for PHP frameworks, its good to build a few website from scratch using PHP to get a better understanding, but eventually, its better to adopt frameworks.

Is AJAX the same as PHP?

AJAX is a group of technologies that allows web applications to retrieve data from the server asynchronously; PHP is a scripting language designed to produce dynamic web pages.


2 Answers

Agile Toolkit is a PHP UI framework, which comes with Object-Oriented User Interface. Pure HTML is produced when objects are rendered recursively. jQuery and jQuery UI widgets are used to enhance the output and implement AJAX. Here is a simple code snippet:

class page_users extends Page {
    function page_index(){

        $crud=$this->add('CRUD');
        $crud->setModel('User',null,array('id','email','name','status'));
        if($crud->grid){
            $crud->grid->addColumn('expander','more','More...');
        }
    }
    function page_more(){
        $tt=$this->add('Tabs');
        $tabs=$this->add('Tabs');
        $tab=$tt->addTab('BasicInfo');
        $tab->add('MVCForm')->setModel('User')->loadData($_GET['id']);

        $tabs->addTabURL('../password','Password');
        $tabs->addTabURL('../activity','Activity');
        $tabs->addTabURL('../engage','Engage');
    }
}

Interface is based on jQuery UI CSS Framework and therefore can be themed using Themeroller. Interaction with HTML, JS or AJAX is handled by Agile Toolkit but can be enhanced or replaced by developer. Above code alone will produce this:

agile toolkit screenshot

The object structure is well-designed and can be used in major web projects. Agile Toolkit is available under OpenSource license.

See also: atk4

I'm one of the authors of this wonderful toolkit.

like image 131
Romans Malinovskis Avatar answered Oct 13 '22 00:10

Romans Malinovskis


http://www.symfony-project.org/plugins/sfJqueryReloadedPlugin

http://bakery.cakephp.org/articles/view/jquery-helper

http://framework.zend.com/manual/en/zendx.jquery.html

http://qcu.be/

like image 29
2 revs, 2 users 80% Avatar answered Oct 12 '22 22:10

2 revs, 2 users 80%