Hello,

I've found a little problem in cake and I don't know if it's me doing
something bad ?

I have a route like this :
Router::connect('/:project/:controller/:action/
*',array(),array('pass'=>array('project')));

It's work just fine, when I do a link like this
$html->link('Edit Milestone', array('action'=>'edit', 'project' =>
$projectId, $milestone['Milestone']['id'])); ?>
I get a url like : /1/milestones/edit/5

For the form, i could get the right action by adding url param :
<?php echo $form->create('Milestone', array('url' => array('project'
=> $projectId)));?>
I get a form tag like this : <form id="MilestoneAddForm" method="post"
action="/~loic/trek/1/milestones/add">

But, when I use the same thing for edit form, I get this :
<form id="MilestoneEditForm" method="post" action="/~loic/trek/
milestones/edit/1/project:1">

I have found one "similar" bug, but with admin url's. He is now
fixed : https://trac.cakephp.org/ticket/3108
If anyone knowwhat I did wrong, of if I should report this bug, please
let me know

Thanks

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to