On Mar 22, 2011, at 07:46, grady wrote:
> The author of the tutorial you referenced mentioned submitting the form to
> itself using 'url' => $this->here for the form created. This doesn't work
> for me due to the following behavior:
>
> Page the form is on:
> http://localhost/cakebox/create/wizard/artifact
>
> Form definition in my artifact.ctp view:
> <?php echo $this->Form->create('Create', array('id' => 'CreateForm', 'url' =>
> $this->here)); ?>
>
> Page the form sends me to upon submission:
> http://localhost/cakebox/cakebox/create/wizard/artifact
>
> It's obvious what is doing, but I just want to understand why the author
> included this on the tutorial when I can't see how it would ever work as
> intended.
It works fine for me, maybe because my CakePHP site is configured at the root
of the hostname's URL space, and yours appears to be in a subdirectory
("/cakebox/").
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php