function to_favorites()
 {
     $id = get_post_value('id');
     $m = new Favorites();
     $data = $m->cartToFavorites($id);
     $this->assign('message', '1');
     $this->setReturnType('message');
 }