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 comment
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 comment
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 comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.