title: Notice (8): Indirect modification of overloaded property LayoutHelper::$View has no effect [APP/View/Helper/LayoutHelper.php, line 48]
body: <p>While migrating CakePHP code from 1.3 to 2.x I am getting this notice message:-</p>
  
  <blockquote>
    <p>Notice (8): Indirect modification of overloaded property LayoutHelper::$View has no effect [APP/View/Helper/LayoutHelper.php, line 48]</p>
  </blockquote>
  
  <p>The code for this notice is:-</p>
  
  <pre><code>function __construct($options = array()) {
      $this-&gt;View =&amp; ClassRegistry::getObject('view');
      $this-&gt;__loadHooks();
  
      return parent::__construct($options);
  }
  </code></pre>
  
  <p>What should I do to fix this?</p>