title: CakePHP layout not changing
body: <p>I am working in CakePHP 2.3.0, I developed app using default layout. Now I need to change the layout to <code>design.ctp</code> but the app is rendering <code>default.ctp</code></p>
  
  <pre><code>    public function myfun() {
        $this -&gt; layout = 'design';
  
      }
  </code></pre>
  
  <p>I tried to clear the cache and switched ON the debug mode but the app is still picking the <code>default.ctp</code></p>