Tutorial is definitely wrong if it offers plain HTML in view. Cake works "out of the box" on any domain/subdir/subsubdir without problems if you use cake helpers to output anything about paths. Form action, link href, image src, etc - and do not use hardcoded URLs at all.
On Oct 4, 9:27 am, IamJim <[email protected]> wrote: > Thank-you very much for the reply, but the tutorial (so far) is > not wrong. (except in the SQL of one extra COMMA) that he will be > fixing. > > Changing the form, would have made it work...but made it a mess for > portability. It did not "run out of the box" (as describe the pathing > problem) in a subdirectory, but will on a /localhost/subdomain just > fine. (pointing to a ROOT) > > The simple resolution is some XAMPP mods to create the subdomain and > Vhost Alias > > http://www.jaredhocutt.com/2009/07/adding-a-subdomain-on-localhost-in... > > Again, thanks much for the reply...and looking to see how this has > evolved...as I tried it about 2 years ago...and got flustered :-) > > On Oct 3, 1:19 pm, "Dr. Loboto" <[email protected]> wrote: > > > > > If you copied listing 9 > > fromhttp://www.ibm.com/developerworks/opensource/tutorials/os-php-cake1/s... > > 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 -~----------~----~----~----~------~----~------~--~---
