Jump to content

Ajax on Zend Framework


phpdeveloper82

Recommended Posts

I have started studying Zend Framework for my new project and now ready to start the work. But I didn't get much help in adding Ajax to Zend Framework. I am familiar with JQuery and wish to use the same on Zend Frame work also.

 

Please send some good tutorials which helps me to understand the working of Ajax with Zend Framework.

Link to post
Share on other sites

Nothing special to learn really. Your Javascript goes into js files which are included via the headScript helper. Your markup goes into your views as normal, then you make requests to controllers via a url. You can then have your actions check the request was made via the XMLHttpRequest object by using the controller objects isXmlHttpRequest() method. From there you can use Zend_Json to respond.

Link to post
Share on other sites

Thank you for your reply. But there are few things if goes advanced Ajax with JQuery on Zend Framework. But at the same time, we can develop ajax application easily as the same way we do in the in normal php coding.

 

Steps:

 

1. Include jquery library in the layout

 

2. Create a Helper Class and include different js file to handle ajax request based on controller and function name or write the JQuery directly to the phtml page.

 

 

I would like to share a good link with you:

 

http://www.zendcasts.com/

 

 

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.