i'm tired of reinventing the wheel on PHP and loving jQuery to death so which framework fits my needs?
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.
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.
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.
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:
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With