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()

3] have projectsController (app/controllers/) with index() action and
views/projects/Index.thtml ( this is part of default.thtml after
parsing )

4] now click on logout link, and cakephp take me NOT TO Users/logout
but to Projects/Users/logout and of course display complaint about
missing METHOD in ProjectsController. But I have this method but in
Users controller NOT in projects controller.

5] Now the only solution I found for this behaviour is to make link in
absolute path - link("Logout","http://examples.com/users/logout";) ...
But is there any other solution ? I am certain that is, and I am
certain that I am doing something wrong, PLEASE HELP !! Thanks much.
Sorry for bothering with this basic problems...


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