I must absolutely lost my mind when I wrote above posts. I'm really
sorry, I wish I could delete them.
Correct is:
$Route->connect('/guestbook/*', array(
'controller' => 'guestbook_posts',
'action' => 'index'
));
in case You're not using CakePHP ADMIN routes and
$Route->connect('/:admin/guestbook/*', array(
'controller' => 'guestbook_posts',
'action' => 'index'
));
if You do.
So if You will call url '/guestbook/' it will call
GuestbookPosts::index() and url '/admin/guestbook/' it will call
GuestbookPosts::admin_index().
For all: sorry for bothering.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---