Hi all. I've made the Blog Tutorial in CakePHP manual and I've added simple authentication using the one in CakePHP manual also (appendix B). So far, I understand the logic mechanism but I have 1 question about link.
I made the system like this: 1). User must login through login page 2). After authentication, the user can see the blog posts. In this page, user also can add or logout (through link I've added) 3). If user logout, then in the logout page, it'll be redirecting to login page again. In my index.thtml (http://localhost/cake/posts/index), I've added the link for logout, and the link seemed like this: <a href="/users/logout">Logout</a> --> method 1 but I don't know why it couldn't work. I've changed the link so it seemed like this: <a href="/cake/users/logout">Logout</a> --> method 2 and it worked. My question is why method 1 didn't work at all while method 2 worked well? If I want to change it like method 1, is there anything I should change? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
