action in Form_GuestBook in Official Quickstart

1 message Options
Embed this post
Permalink
sNop

action in Form_GuestBook in Official Quickstart

Reply Threaded More More options
Print post
Permalink
Hi,

I suggest change code which generate action in application\controllers\GuestbookController.php on line 111 from $form->setAction($this->_helper->url('sign')); to $form->setAction($this->_helper->url->url()); because I have discovered this problem which I have posted to MVC maillist:


Hi all,

now I'm playing and testing example from
http://framework.zend.com/docs/quickstart/ (so official quickstart), bud
I have problem now.

When I try post form, so I get error message that
guestbook/sign(controller/action) isn't right.

The URI to the public direcoty of my example is
http://localhost/mvc-zend-test/public/index.php

Of course I have set up:
$frontController->setBaseUrl('/mvc-zend-test/public');


And I have tried:
$this->setMethod('post')
      ->setAction('different addresses');

And in my .htaccess, which is in directory /mvc-zend-test/public/ I have
set up this too:
RewriteBase /mvc-zend-test/public


How can I resolve this problem ?

Thank You for advises and suggestions.


If directory public isn't the document root then there is problem which I have described above.