Siebren is right, you need to add the contents_for_layout in the body section of your default.ctp
However, to make it easier for you to start up and continue from where you are right now, go to cake/libs/views/layouts/default.ctp and copy its contents to your app/views/layouts/default.ctp. There are a couple of more useful things than just contents_for_layout in there.
Then take off from there.
Cheers

Femi

Siebren Bakker wrote:
are you sure that the contents_for_layout is in the body section of your default.ctp layout?

should be
snip....
<body>
(add whatever here)
<?php echo $contents_for_layout; ?>
(add more if you need it)
</body>
</html>
In the name of Life, Liberty, and the pursuit of my sanity.
Siebren Bakker(Aevum Decessus)

On Sat, Jul 19, 2008 at 05:53, vibhor <[EMAIL PROTECTED]> wrote:

Hello all,

I am trying to upgrade my existing project(in php) using cakePhp
1.2 .  I am fairy new to cake and have been playing around  with the
examples and tutorials for a while. But i am facing a minor problem, I
want to set up a home page for my CMS part of the project, with a
login form on the same page.

As per my knowledge, I have created a home.ctp in pages folder and the
default.ctp in the layouts folder. My login form is in the home.ctp
file and when i load this, the browser shows nothing. But, when i put
the contents of the home.ctp file in default.ctp, i can view my login
form.

I don't know what is wrong in this..Please, can someone help me in
this...

Thanks,
Vibhor










--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to