As for when you say>>
[quote]
Cake
works "out of the box" on any domain/subdir/subsubdir without problems
if you use cake helpers to output anything about paths.
[/quote]
Without a single mod to any files? Or any type of extra coding
needed?
I had cake installed (local box, XAMPP) as such:
1) c:\xampp\htdocs\myCoreRoutines\cake (is where I placed the
files)
2) Browsing to this URL did bring up CAKE = http://localhost/myCoreRoutines/cake/
(default page)
3) Using that tutorial, I ended up with > http://localhost/myCoreRoutines/cake/users/register
and the fact you pointing out in the form example there..."pathing"
for the form...
4) But, when using the above "out of the box" in a sub-dir, CAKE
fed back the output to: Object not found! and showing in the address
bar a URL of : http://localhost/users/register (Please note the /
myCoreRoutines/cake is no longer there)
5) I understand that it says "install in webroot"...in which I did
a "subdomain" on a REMOTE server, and it worked fine. But not in a
"sub directory" all byt itself...(with no editing such as what is said
to?? for index.php)
Now, if I were to EDIT this, when uploading local to remote... I
know it would toss an error
6) By me simply creating a "subdomain" on XAMPP (for developing),
this resolved the issue I was having, and then would be keeping the
index.php file in tact...so that I may upload...or ZIP loacl, FTP all
at once...and unzip then on Live-remote.
Does this make sense? Again, I am new "again" to cake, I tried it
2 years ago and thought I would give it another try.
I also purchased the book, copyright 2008 ?? Is this a wasted
purchase? Like the on from 2007 for Symfony that they said "Don't go
by the book" ??
Thank's again for the reply,
Jim
On Oct 4, 12:03 am, "Dr. Loboto" <drlob...@gmail.com> wrote:
> 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 <webpro.phpmy...@gmail.com> 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" <drlob...@gmail.com> 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 <webpro.phpmy...@gmail.com> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment