Tuesday, May 1, 2012

Re: cookie and array

as I explained above you need to cast such a return result before you can use it as an array.

$arr = (array)$this->Cookie->read('braceletid');
$arr[] = $id;
$this->Cookie->write('braceletid', $arr);
 

Am Dienstag, 1. Mai 2012 11:59:07 UTC+2 schrieb hoss7:
thanks, how can i add some value in this array in cookie?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: