Hi,

if you need to set custom titles for static pages, here's a solution:

1. just copy pages_controller.php to your app/controllers dir.
2. make an array after line
var $uses = null;
...
like this:

var $titles = array (
     'help' => 'Ваша помощь',
     'faq' => 'Вопросы и ответы',
     'agreement' => 'Соглашение',
     'your_view_name' => 'your_page_title',
     );

3. change this line
96. $title = ucfirst($path[$count - 1]);
to this:
96. $title = $this->titles[$path[$count - 1]];


That's it.

S.

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

Reply via email to