<roundrightfarm@gmail.com> wrote:
> here is my controller function that is called by ajax
>
> function select($id, $product_id){
> $this->OptionalShareUser->read('current_product_id', $id);
> $this->OptionalShareUser->set('current_product_id',
> $product_id);
> $this->OptionalShareUser->save();
>
> }
>
What specifically does the 404 say? It looks like it's probably due to
Cake trying to render a non-existent view for the action. However,
you're updating #main with the response, so perhaps you do have a
view. But, the action doesn't appear to be setting anything for the
view. Is that correct? Basically, what is supposed to be returned to
the ajax() call?
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment