AD:
That helps quite a bit. It didn't quite get me there...what I end up
with is a resulting URL of:
/sitevisits/orders/orders/add/1
Note the duplication of "orders". With a bit of mucking about, I
ended up with this:
$parts = explode('/', $this->params['url']['url']);
$vid = array_pop($parts);
echo $form->create('Order', array('url' => array('controller' =>
'orders', 'action' => 'add', $vid)));
This seems to work perfectly (unless, of course, I'm missing something
that would lead to unexpected behaviour!).
Thanks for your assistance.
--Carl
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---