title: Increment controller variable
body: <p>Having a controller like the following:</p>
  
  <pre><code>Class Upload extends Controller{
          private $up_count = 0;
          public function action_tmpupload()
          {
                  if($this-&gt;up_count == 0)
                  {
                          //empty a session variable
                  }
  
                  //some more coding to save data into a session variable
  
                  $this-&gt;up_count++;
                  return true;
          }
  }
  </code></pre>
  
  <p>I keep wondering what am I doing wrong as the <code>$up_count</code> variable won't increase its value, it always stays 0.</p>
  
  <p>What am I missing?</p>