>
> 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
>
> I except, that Zend_From take over the base address from which is set in
> Zend_Controller_Front,
> Ocekaval jsem, ze Zend_Form se zaridi podle adresy nastavene ve
> Zend_Controller_Front which would be logical behavior, but he ignores it.
>
> How can I resolve this problem ?
>
>
The solution is:
// $form->setAction($this->_helper->url('sign'));
$form->setAction($this->_helper->url->url());
So the the Oficial Quickstart could by adjusted.
--
View this message in context: http://www.nabble.com/-Zend_Form--Bad-adress-in-%3Cform-action%3D%22%22-tp19746329p19749548.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论