I am working with CakePHP 2.0. The one i downloaded on October.
I am trying to create my default layout and i find out that it doesnt work well following the CookBook steps.
It doesn't recognize $this->fetch() and it shows this error:
Fatal error: Call to undefined method View::fetch() in /Applications/MAMP/htdocs/webnoticias/app/View/Layouts/default.ctp on line 9
This doesn't work:
[PHP]<?php echo $this->fetch('content'); ?>[/PHP]
And only works with:
[PHP]<?php echo $content_for_layout ?>[/PHP]
So... whats the problem guys?
I am completely sure i am using CakePHP 2.0
Why the CookBooks doesnt say it well?