Hi John
Can you tell me which version of Cake this applies to? The display
function in pages_controller.php of Cake version 1.0.0.2378 looks like
the following, so I am unclear about how to apply the snippet.
function display()
{
if (!func_num_args())
{
$this->redirect('/');
}
$path = func_get_args();
if (!count($path))
{
$this->redirect('/');
}
$this->set('page', $path[0]);
$this->set('subpage', empty($path[1])? null: $path[1]);
$this->set('title', ucfirst($path[count($path)-1]));
$this->render(join('/', $path));
}
Regards,
Langdon
John Zimmerman [gmail] wrote:
> If anyone is interested I added a snippet to cakeforge that is a
> modifcation to the pages_controller.php that displays the thtml files
> located in /app/views/pages.
>
> Basically it will make the titles look like....
>
> 'Page Title'
>
> instead of....
>
> 'Page_title'
>
> Here is the link...
>
> http://cakeforge.org/snippet/detail.php?type=snippet&id=68
> <http://cakeforge.org/snippet/detail.php?type=snippet&id=68>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---