Setup:
Say your cake app isn't the root of your HTML folder -
So instead of being at the root of your document_root (/home/html/)
it's actually located in (/home/html/cake/)
you have normal files in the html folder, and a mod_rewrite rule so
that when you go to domain.com/bake it loads cake
your url path is: domain.com/bake
your doc_root is: /home/html/
your app_root is: /home/html/cake/app/
etc...

Question:
How do you you use the form helper and try to send a user to
http://domain.com/bake/add via the form action?

What I tried:
 'url' => '/bake/add' in the form helper actually writes this in the
form action: action="/cake/bake/add"
 'url' => 'bake/add' in the form helper aalso writes this in the form
action: action="/cake/bake/add"


Shouldn't the helper be modified so that if /bake/add is requested
then the action should be action="/bake/add" but if 'bake/add' is
requested then the action can be relative to the cake structure, which
here would be: action="cake/bake/add' ?


While talking on IRC I realize that there are other solutions to this,
such as moving the files around or renaming the cake folder - but I
would like to find a correct solution so that I can redirect a form
action where I want, without having to use a 'http' format.

the typical folder structure:
http://bin.cakephp.org/view/198561794

Any help/suggestions on how to do this without writing out the entire
http:// url would be appreciated!

--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to