unspecified error

wang

Fatal error: Can't use method return value in write context in

Can I give you some advice sir? When you need help with coding, it would be a good thing to post the whole code, or that part of the code that you need help with. Because that would save you, and those that are helping you, a lot of time by eleminating the guess work.
 
Template
Code:
<form action="{xen:link 'account/example'}" method="post" class="xenForm formOverlay AutoValidator">
<dl>
<dd>
    <input type="text" name="example" value="" dir="ltr" class="textCtrl" id="ctrl" />
</dd>
</dl>
<input type="submit" value="{xen:phrase send_message}" accesskey="s" class="button primary refcl" id="SubmitButton" />
<input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />

</form>
Controller
Code:
Example_Controller_Public_Index
{
 public function actionExample()
    {
      $this->_input->filterSingle('example', XenForo_Input::STRING);
     
      //I have come to check an empty field or not?
    }
}
 
It is not very clear to me as to what are you trying to do. Anyways, can you try this?

Code:
$example = $this->_input->filterSingle('example', XenForo_Input::STRING);
 
Back
Top Bottom