hey Roby, Is your app installed in the subdirectory cake on your local server?
if so, you might be able to solve your problem with routes: /app/config/routes.php and .htaccess, but basically you're trying to point at the root when the application is installed in a subdirectory. i may be well off here but it is a place i would start. i cheat when testing on my local machine (hides face in shame) by adding entries in my hosts file. i'm on a windows box by the way. 127.0.0.1 test.domain.local then, by setting up a virtual directory in my xampp installation i'm able to run my development environment as close to my production as possible. HTH mikee On 24/10/06, roby <[EMAIL PROTECTED]> wrote: > > 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 cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---