I believe that it is in your site setup that you would change it so
that the root of your website was at /localhost/cake.

I have mine on a shared hosting account, so setting the home page of
the site to be the /cake_install/app/webroot worked for me.

Hope that helps.
Rusty


On Apr 4, 9:57 am, Scott Ackerman <[EMAIL PROTECTED]> wrote:
> I am "trying" to get through the "Cook up Web sites fast with CakePHP"
> tutorial at IBM's website. I have created the initial database, the
> model, the view and the controller. I am at the part where I am
> testing it for the first time. I have the CakePHP install installed in
> a directory called "cake" in my webroot. So in the case of the example
> to test the registration I use 'localhost/cake/users/register' which
> takes me to the registration form. I then fill out the form and click
> the "register" button. But the controller returns me to 'localhost/
> users/register' which of course gives me a "page not found" error. I
> can see what the problem is but I am not sure what to do to fix it.
> The controller  looks like this:
>
> <?php
>
> class UsersController extends AppController {
>
>     function register() {
>         if (!empty($this->params['form'])) {
>             if ($this->User->save($this->params['form'])) {
>                 $this->flash('Your registration information was
> accepted.', '/users/register');
>                 }
>             else {
>                 $this->flash('There was a problem with your
> registration', '/users/register');
>                 }
>             }
>         }
>     }
>
> ?>
>
> Now I know that I could change the directories to '/cake/users/
> register', but it seems that there should be a way for Cake to pickup
> the directory that it is installed in and insert it (since it is
> already inserting the URL just to get to the 'users' subdirectory. Or
> is it assumed that you will always have everything that is in the
> initial install folder directly in the document root? I didn't find a
> config file that I could specify the initial directory for CakePHP. I
> hope I am making sense. My understanding was that I could simply unzip
> the CakePHP files into my web root and rename that initial directory
> anything (which I renamed to simply 'cake' instead of 'cake1.00etc.').
> Sorry for such a stupid beginner question.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to