Hi batoon!
I solve the problem. I made a mistake on just calling /controller/action,
while it should be /ZF_dir/controller/action. In addition, firebug helped a
lot in finding out several errors threw by ZF.
Cheers!
Calvin

batoon wrote:
> 
> 1. /topath/application/controllers/VisitorController.php. Yes you can do
> it.
> 
> 
> 2. Disable ViewRenderer, and
>     $this->getResponse()->setBody()...
>     $this->getResponse()->setHeader()...
> 
> 
> minglee wrote:
>> 
>> I am new to Zend Framework(ZF), and got confused when coding ajax:
>> 
>> 1. Because ZF is using rewrite, how should I call the server-side action,
>> for example:
>> If I want to call registerAction in
>> /topath/application/controllers/visitor.php, can I call like
>> "/visitor/register"-- my .js file is in /topath/public/script/?
>> 
>> 2. After handle the HttpRequest in visitor.php, how shall I output HTTP
>> response, shall I use something $view->render() or just "echo $response;"
>> ?
>> 
>> Anyone can help with the above problems?!
>> 
>> Many thanks!
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Apply-ajax-in-Zend-Framework-tf4101038s16154.html#a11709497
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to