Your directory structure doesn't look right. The directory 'cakephp'
is effectively the root of your site. The files/folders within it
should be:
.htaccess
/app
/cake
/docs (optional, but useful)
index.php
/vendors

All of the files and folders that you create go in the /app folder.

If you follow this set up you'll get to your homepage at 
http://localhost/cakephp/.

May I make a suggestion? Why not create a folder in your web root call
todo, and then deploy the structure I outlined. Then you can get to
your site at http://localhost/todo/. When you deploy to live, you
simply move the entire contents of /todo to your web server's root and
it should all work nicely.


On Dec 5, 8:31 am, BearState <[email protected]> wrote:
> Hello,
>
> I have downloaded CakePHP,  Windows XP.
>
> I am referencing the book   "Beginning CakePHP" by David Golding.
>
> I have Apache on my staging server, but it has many things there, so I
> set up a  cakephp package as follows:
>
> /cakephp
>     cake
>     apps
>     todo
>         modules/item.php
>         controllers/items_controller.php
>
> I have worked my way through Chapter 3 and things are NOT going
> right.
>
> 1st Problem:
>
>      The display does not appear correct.   It is not tabular, but has
> colored and sized fonts.
>
> 2nd Problem:
>
>      http://localhost/cakephp/todo       brings up the page, not
> looking right as explained above
>
>      http://localhost/cakephp/todo/items              results in 404
> Not found error.
>
> If I go and fudge the routes.php   file and add
>
>      Router::connect('/', array('controller' => 'Items'));
>
> I can get a screen that has a form that would be used to add an item,
> but ...
>             when submit is clicked,    http://localhost/cakephp/todo/items/add
>                   is not found.
>
> The reference book doesn't provide a clue as to why it is failing.
>
> Any guidance would be appreciated.
>
> Thanks,

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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