title: Can't upgrade the project to CakePHP-2.0
body: <p>The project was developed with CakePHP-1.3</p>
  
  <p>Now I'm trying to upgrade to CakePHP-2.0</p>
  
  <p>I have renamed all controllers and mode with the CakePHP-2.0 conventions.</p>
  
  <p>Now if I reloads the page I got error like this:</p>
  
  <pre><code>Indirect modification of overloaded property PostsController::$Auth has no effect [APP/Controller/PostsController.php, line 11]
  </code></pre>
  
  <p>The code:</p>
  
  <p>PostsController:</p>
  
  <pre><code>$this-&gt;Auth-&gt;allowedActions =
          array('index','view','archive','listarchive','viewfromcategory','tags','aboutme','contact','polls');
  </code></pre>
  
  <p>AppController:</p>
  
  <pre><code>class AppController extends Controller {
      var $components = array('Acl', 'Session', 'Auth','RequestHandler');
      //var $helpers = array('Html', 'Form','Js','Session','Cache');
      var $helpers = array('Html', 'Form','Js','Session');
  
      function beforeFilter() {
          //Configure AuthComponent           
          $this-&gt;Auth-&gt;actionPath = 'controllers/';
  
          $this-&gt;Auth-&gt;allowedActions = array('display');
  
          //$this-&gt;Auth-&gt;authorize = 'actions';
          $this-&gt;Auth-&gt;loginAction = array('controller' =&gt; 'users', 'action' =&gt; 'login');
          $this-&gt;Auth-&gt;logoutRedirect = array('controller' =&gt; 'posts', 'action' =&gt; 'index');
          $this-&gt;Auth-&gt;loginRedirect = array('controller' =&gt; 'posts', 'action' =&gt; 'index');
      }
  </code></pre>
  
  <p>How can I fix this problem?</p>