Hey, your $content_for_layout is filled by your view, which is called via controller/action.
If you want your domain.tld/ to go to specific controller/action instead of /pages/display/home you need to create a routing rule (see book for this). The file is here: APP/core/routes.php If you want to create a signup link application wide then you add it in a layout, otherwise you just add it into your view. About default text issue: are you sure you have created /app/views/pages/home.ctp? Are you sure you didn't misspell file name and your path to home.ctp is correct? Have a nice day, Faifas On Tue, Apr 28, 2009 at 19:02, samweis <[email protected]> wrote: > > Hi, > > I am new in cakePHP (for about two days now). I think I got a pretty > good understanding about the MVC concept. I saw the blog tutorial and > followed every step and also followed the same recipe expample. Now I > wanted to create my own application and before building all pieces of > it, I wanted to see how I can put them together in the end. > > So I have a user management in my application. I know how I can create > CRUD for the users and call it via domain.tld/users/ but I want to > place a link on the start page for "Sign up". > > I changed the defaul layout by creating a default.ctp in app/views/ > layouts. On this page, cakePHP tells me "To change the content of this > page, create: APP/views/pages/home.ctp". I created that home.ctp but > nothing happens. > > So what am I doing wrong to remove the default cakePHP text when just > calling domain.tld? So as far as I understood, I need somehow to fill > the $content_for_layout from my default.ctp. > > Thanks for your help and sorry for being and absolute beginner. But I > will learn ;-) > > Samweis > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
