In controller.php line 262 Cake make this assumption:

259         function constructClasses() {
260             if (empty($this->params['pass'])) {
261                 $id = false;
262             } else {
263                 $id = $this->params['pass']['0'];
264             }

this means that ALWAYS the first param received by GET is the model Id,

is this a bug?

Because i want to use the first param for other thing but cake loads my
model with
the id so i update my data instead of inserting a new one.

Would be nice if this assumption is configurable.

Any ideas?
Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to