title: Laravel controller thinks my function is undefined
body: <p>Pretty simple.  I'm trying to call a function from within my controller.  The function is, in fact, defined.  Yet, when the function is called I get "PHP Fatal Error: Call to undefined function validate() ..."</p>
  
  <p>Here's my code.  Any ideas?  Thanks.</p>
  
  <pre><code>&lt;?php
  
  class HomeController extends BaseController {
  
      /**
       * Controller for the index action of the home page.  Displays the landing page.
       */
      public function index()
      {
          return View::make('landing', array('success' =&gt; false));
      }
  
      /**
       * Controller to handle processing the contact form and re-displaying the landing page
       */
      public function processForm()
      {
          $form_array = array();
          $errors = array();
  
          foreach (array('email','fname','lname','message','newsletter') as $val)
          {
              if (isset($_POST[$val]))
                  $form_array[$val] = $_POST[$val];
              else
                  $form_array[$val] = null;
          }
  
          $form_ok = validate();
  
          if ($form_ok)
          {
              echo "GOOD!";
          }
          else
          {
              echo "BAD!";
          }
      }
  
      /**
       * Helper function for validating the form.  Returns true if the form was 
       * submitted without errors.
       */
      public function validate()
      {
          return true;
      }
  }
  </code></pre>