title: Passing values between Controllers and Views
body: <p>I am working within another person's project framework and my lack of experience with using an MVC is problematic. The controller's <code>index()</code> passes a value to its view via the <code>$data</code> variable, then the view has URLs which trigger other functions in the controller.</p>
  
  <p>When one of these URLs is clicked, I need to get this value to the controller function that is being called. I don't want to pass it in the URL itself and I am wondering if there is any other good way to do so?</p>
  
  <p>Example controller function I need to pass a value to:</p>
  
  <pre><code>public function ftp($request = null)
  {
      $data['title'] = 'ftp';
      $data['page'] = 'services';
      \helpers\session::set('template', 'default');
      if (!Session::get('user'))
      {
          Url::redirect('');
      }
      else
      {
          $data['request'] = $request;
          $data['baseUrl'] = '/site/'.$request.'/';
          $this-&gt;view-&gt;render('site/ftp',$data);
      }
  }
  </code></pre>