Do I need to create a new layout?

no, by default cake use the default.ctp in app/viewslayouts/

And can I tweak the existing layout
> to change the color?
>
yes but you'd be better making a stylesheet and putting it in the
app/webroot/css/mystylesheet.css
 and in your layout $html->css('mystylesheet') // see no suffix

Also, once you create a layout, what types of
> variables goes in the page


you set  vars that pertain to the controller/action in the controller
$this->set('myvar', $Posts); other vars can be set also in the beforerender
method of either the current controller or the parent of that the
app_controller in app/app_controller.php.    You may also set config values
in the config/core.php file Configure::write('Somesetting', 'Foo Bar');
Configure::read('Somesetting'); (these can be reset at run time) also you
can define definitions in bootstrap.php also in config.  You only want to
send vars that your using to the view (all coding here should be concerned
with making the layout [model gets it from the db controller prepares it for
the view.  The view displays it ])

Sounds to me like your at the stage where your finding things out, I can
assure that you'll soon preserve with google, patience  -IRC should help
loads if its an option :)

2008/7/18 Froggy <[EMAIL PROTECTED]>:

>
> Hello,
>       I am very very new to cakephp.  I went through the whole manual
> and have successfully went through the blog tutorial.  Now that I have
> the blog application done, I want to be able to modify the overall
> design of the page.  Unfortunately I don't understand how to do one.
> Do I need to create a new layout? And can I tweak the existing layout
> to change the color?  Also, once you create a layout, what types of
> variables goes in the page and can someone give me a basic layout of
> one, it will be very helpful or if anyone has some place that I can
> read up on creating layouts/themed.  It will be greatly appreciated.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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