Hi to all bakers :-)
I would like to please someone more experienced to help me with
following problem. It seems that I am total idiot, but I can not figure
out how routing, and linking inside cake project works.
What I want to achieve :
1. www.example.com/ --INDEX.THTML (Main page,
This really drives me crazy ...:-)
1] have in elements/status.thtml inside code
$html-link('Logout','users/logout')
- this status.thtml is $html-renderElement() in default.thtml
(pages/layouts/default.thtml - default layout )
2] have UsersController with action logout() - redirect to login()
Try this instead:
$html-link('Logout','/users/logout')
Note the leading slash before users (/users...).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
YES !! YES !! YES !! Its IT !! Thanks much nate !! Sory for stupid
question :-) Have a nice day !
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to