hello all
 I'm making shoping cart.....
I have problem when iam writting such code
and cause a problem
that means this code not giving me error
but it could no to given actual output....

if($this->Session->check('key'))
                                                        {
                                                                        $vik= 
$this->Session->read('key');

                                                                        
for($i=0;$i<=count($vik['mycart']);$i++)
                                                                        {
                                                                                
if($vik['mycart'][$i]['id'] == $id )
                                                                                
{
                                                                                
        $this->Session->delete($vik['mycart'][$i]);
                                                                             }
                                                                                
else
                                                                                
{
                                                                                
                        echo "sagar";
                                                                                
}
                                                                        }


                                                        }
i have written this type of code in my
function but i could not see deleted item  form session array
So what i have to do for that


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