What is the "action" of your form (from the final HTML)? how are you
setting it (in the PHP)?

In my action I am setting $form->setAction(mailist/detail) , so in
detail.phtml I can write action = $this->getAction().
Actually the problem lies here as on the previous page I set action for
corresponding form as
$form->setAction(mailist/list)
and in this list action I write $form->setAction(mailist/detail). So final
url becomes 
 http://localhost/mobile_mail/admin/maillist/maillist/detail.
Isnt it possible to set a new form and a new action in an action.





Brenton Alker-3 wrote:
> 
> Aniketto wrote:
>> Hi all,
>> 
>> I have a page displying databse table. One field is text box and can be
>> edited. Now when I click on submit button, the same page should get
>> displayed. But I get a 'Page not found error'.
>> 
>> The url also contains controller name twice .
>> It should be actually
>> http://localhost/mobile_mail/admin/maillist/detail
>> 
>> but it becomes
>> http://localhost/mobile_mail/admin/maillist/maillist/detail
>> 
>> what can be the problem?
> 
> What is the "action" of your form (from the final HTML)? how are you
> setting it (in the PHP)?
> 
> Unless something at /mobile_mail/admin/maillist/detail is redirecting,
> the incorrect url must be in the action of the form. If you want to
> submit to the same page as the form is on, it is quite acceptable to use
> an empty action (i.e action = "" - just don't leave out the attribute
> all together)
> 
>> Also  I come to this detail page from another action where I set new form
>> and its action as detail.
>> 
>> Thanks in advance,
>> Aniket
> 
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/action-calling-tp21122496p21123902.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to