(CakePHP 2.1, CentOS) Hey guys- so I'm doing something simple in CakePHP. I start a form using the FormHelper class from inside my edit.ctp view, using a familiar call:
echo $this->Form->create();
and when I go to mycoolsite/posts/edit/17 the markup contains
<form action="/posts/edit/17"
This is expected. Now, when I specify the model and the url, like this,
echo $this->Form->create('Post', array('url' => '/posts/edit'));
and again go to mycoolsite/posts/edit/17, I get this form tag in the markup, which is missing the "/17" from the action:
<form action="/newsite/posts/edit"
Is this normal? I could have sworn that the record id gets appended to the action automatically by the create function even when you specify the url parameter explicitly.