On Sun, Jan 2, 2011 at 11:57 PM, roundrightfarm
<[email protected]> 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 [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

Reply via email to