Re: Total NOOB-- Defualt.thtml

2006-09-05 Thread nate

$title_for_layout and $content_for_layout (and $scripts_for_layout as
of Cake 1.2) are magic variables assigned by the View class.  You can
override the default by setting $this-pageTitle in either the
Controller (inside one of your actions), or in your view template.

As to your other questions, you can use the set() method of the
controller to pass data that will be available in both your layout and
your view template.  This might be a good place to set meta tag data,
depending on your situation.  If you checkout Cake 1.2 from SVN
(https://trac.cakephp.org/browser/branches/1.2.x.x), you can also use
$this-set() in your view templates, to pass data to your layout, and
$javascript-link supports a second parameter which will allow you to
send JavaScript links to the head / (or wherever in your layout you
put $scripts_for_layout).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Total NOOB-- Defualt.thtml

2006-09-05 Thread MrTufty

Nate,

I'm probably doing something stupid, but I find myself unable to
checkout from SVN. Is there a set of instructions on how to do it? I
have TortoiseSVN installed already and I've had it working in the past,
just not with Cake...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Total NOOB-- Defualt.thtml

2006-09-05 Thread nate

Sorry, I probably should have been more clear.  The URL I posted was
the web-based SVN browser.  To actually check it out with an SVN
client, use this: https://svn.cakephp.org/repo/branches/1.2.x.x/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---