Hello everybody,

I'm new with cakePHP and I have some difficulties understanding the
constrains of url format.
Sorry in advance if my question is stupid or has been already asked
but I couldn't find any matching subject.

Here's my problem.
Let's say I have a Link class which stocks my bookmarks.
Let's say on my homepage I have a form that allows me to choose a Link
from a select box and then send me to the edit page of that link.
With regular php, that would give something like that :
<form action="link_edit.php">
  <select name="id">
      <option value="1">Link1</option>
      <option value="2">Link2</option>
      <option value="3">Link3</option>
  </select>
  <input type="submit" value="ok" />
</form>

I would like to know how I am supposed to do this with Cake. Of course
I know how to build a form such as the one above with cake but I can't
figure out how to translate the information passed so cake
automatically understands it has to redirect me to link/edit/id
without doing a redirect in the Link controller.
In other words, I would like to know id there is another way to call
pages than with complete urls, for example, like here, width post
data, like in regular php where the example below equals :
link_edit.php?id=1 (if I choose the first item of the select).

I hope I made all this clear, maybe my question doesn't make any sense
in Cake, maybe my mind is just not baked enough :)
Thank you in advance for your answer and sorry for my English.

--~--~---------~--~----~------------~-------~--~----~
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