How to use form function like isPost() in user widget of socialengine?
<p>I am trying to move the function of joining and leaving network to member home page. So I created a user widget block called "channel-indicator" to do that but encountered problem in writting the controller.php code. I tried to use &amp;this->getrequest()->isPost() function in Controller but facing error of " Fatal error: Call to a member function isPost() on a non-object in "application/modules/User/widgets/channel-indicator/Controller.php".
I am a beginner for zend framework, can somebody give me some suggestion in that?</p>

<p>below is the part of code I would like to put in to my controller.php</p>

<pre><code>$this-&gt;view-&gt;form = $form = new User_Form_Settings_Network();

if( !$this-&gt;getRequest()-&gt;isPost() ) {
  return;
}

if( !$form-&gt;isValid($this-&gt;getRequest()-&gt;getPost()) ) {
  return;
}
</code></pre>