Re: How do you set home page title?

2006-07-08 Thread Bobby [livin' dead productions]

If you create a template/layout for CakePHP to use, you can have a site
wide (or application wide if the template is for a specific app) title
for your pages.  I created a default.thtml file in apps/views/layouts/
and in the title tag, you can put anything before $title_for_layout.
You don't even have to put $title_for_layout, but you won't have
anything else for a title.

Not sure if that helps.  But maybe somebody can use it.


--~--~-~--~~~---~--~~
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: How do you set home page title?

2006-07-01 Thread francky06l

In the view using $this-here will give you the complete current page,
using $base will give you cake/app/views


--~--~-~--~~~---~--~~
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: How do you set home page title?

2006-06-29 Thread carobert

In your controller you can set the title with: $this-pageTitle

$this-pageTitle = 'My Page Title';

In your layout you can access the variable with: $title_for_layout

...
head
title?php echo $title_for_layout; ?/title
/head
...


[EMAIL PROTECTED] wrote:
 I'm aware you can use $this-pageTitle in a controller action to set
 the page's title.  However, I can't find where to set the home page's
 title (i.e. the title for app/views/pages/home.thtml).
 
 Does anyone know where to set the home page's title?


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