Thanks very much.

I've checked Cookbook again - of course I didn't notice a key
information which is: "New in version 2.1." :>


On 16 Sty, 17:01, Tilen Majerle <tilen.maje...@gmail.com> wrote:
> of course,
>
> View::fetch() is available since 2.1, but you have 2.0.5
>
> use $content_for_layout instead
> --

>
>
>
>
>
> > Hello.
>
> > I'm starting to build an app on CakePHP 2.x - I have been using
> > version 1.2 since now.
>
> > I downloaded the 2.0.5 Stable version, set it up on my localhost,
> > created DB with simple table 'subpages' and Subpage model, created
> > simple layout with couple of html tags and:
>
> > <body>
> > <?php echo $this->fetch('content'); ?>
> > </body>
>
> > And what I get is an error:
>
> > Fatal error: Call to undefined method View::fetch() in
> > (...)default.ctp on line 14
>
> > This is a clean version of Cake, I didn't modify anything. Just added
> > one simple model Subpage.php and default.ctp with call to fetch
> > function, as wrote in Cookbook.
>
> > Anybody knows what could be the problem?
>
> > Thanks in advance for help!
> > Anna
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to