1. /topath/application/controllers/VisitorController.php. Yes you can do it.
2. $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#a11662768
Sent from the Zend Framework mailing list archive at Nabble.com.