If you copied listing 9 from http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/section3.html you get what you get - it is wrong view. And, I afraid, wrong tutorial at all.
Read about Form helper: http://book.cakephp.org/view/183/Creating-Forms On Oct 3, 5:12 pm, IamJim <[email protected]> wrote: > Good day all, and this is my first post to the group and trying to > get Cake to be able to run from a Sub-directory (structure) instead > of /weboot in my XAMPP installation in order to keep this cleaner. > > http://localhost/myCoreRoutines/cake/ > > OR?? Maybe I just need to create a 'sub-domain'...in which I am > really unsure how to to to my "localhost" ?? (not sure if I am > explaining this correct, but I am NOT running my local box as a web > server using a FQDN > > I did do a 'search' first (prior to posting) ox 'xampp' and there > were 16 results and none of them were really addressing what I need to > accomplish > > I am sure it is just a pathing or setting I need to > change...similar to an IF/ELSE statement possibly, but I am usure how > to achieve this please. > > I have installed LOCAL as C:\xampp\htdocs\cake > > LOCAL ENVIRONMENT > Win2kServer running XAMPP > PHP 5.2.9 (cli) (built: Feb 25 2009 15:52:24) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by > Zend Technologies > with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend > Technologies > > I also (after local dev and testing) will be uploading to: > > REMOTE ENVIRONMENT > CENTOS 5.3 i686 standard > PHP 5.2.8 (cli) (built: Jul 8 2009 14:31:09) > Copyright (c) 1997-2008 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies > > For now, I have uploaded my CAKEPHP to a subdomain (created using > cPanel) such as: > > cake.theWebsite.com > > First of all, I am using this tutorial which is laid out VERY WELL > for someone new to understand and is step by step: > > http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/i... > > I am able to get up to page 3 of this where there is a form: > > http://cake.theWebsite.com/users/register > > Everything works just fine !! > > But, on my LOCAL set up...which is a "sub-directory", and not a sub- > domain (aka WEBROOT) and I am able to get the FORM to load fine > > And the LOCAL URL is: > > http://localhost/myCoreRoutines/cake/users/register > > but what is happening after FORM SUBMISSION > > Cake is PATHING this back into the "WEBROOT" of : > > http://localhost/users/register > > (Please note the removal of : myCoreRoutines/cake from the URL) > > and is tossing (of course) > > Object not found! > The requested URL was not found on this server. > > Any help would be greatly appreciated...and I would suspect a simple > solution....it is just I am noew to CAKE. > > I had no problem using this SubDir structure using /symfony at all. > > Thank you all in advance, > > Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
