Re: [symfony-users] $this->getRequest()->isMethod('post')

2010-05-04 Thread Parijat Kalia
so the form is form_tag('admin/otherPage')...which by default makes it a post. And the button is nested within the form, which implies that it posts when the submit button is hit. This deviates from the actual question, which is, why is the post method being recognized when it is being directed fro

Re: [symfony-users] $this->getRequest()->isMethod('post')

2010-05-03 Thread Eno
On Mon, 3 May 2010, Parijat Kalia wrote: > I have a webpage, where some content is loaded when the page is loaded, and > the other action is performed when the submit button is hit... > the code behind in the action is > > if($this->getRequest()->isMethod('post')) { > echo "hello" ; /

[symfony-users] $this->getRequest()->isMethod('post')

2010-05-03 Thread Parijat Kalia
Hey guys, I have a webpage, where some content is loaded when the page is loaded, and the other action is performed when the submit button is hit... the code behind in the action is if($this->getRequest()->isMethod('post')) { echo "hello" ; // *for testing purposes* } When the page