Hi,
in one my models I declare
var $deletedEia = array();
later on, I add data to the array
$this-deletedEia[] = array_pop($array);
then I do want to save it to a session:
CakeSession::write('deletedEia', $this-deletedEia);
Strange enough, on every load of this function, the first array
where you read data from session ? :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2012/2/26 heohni heidi.anselstet...@consultingteam.de
Hi,
in one my models I declare
var $deletedEia = array();
later on, I add data to the array
$this-deletedEia[] = array_pop($array);
then I do
it makes no diff if I do it from model or from controller
On 26 Feb., 18:53, Tilen Majerle tilen.maje...@gmail.com wrote:
where you read data from session ? :)
--
Lep pozdrav, Tilen Majerlehttp://majerle.eu
2012/2/26 heohni heidi.anselstet...@consultingteam.de
Hi,
in one my
every time you reload page, this variable in class is set to array()
(always starts empty), them you set one value to it and save to session,
when you reload second page, you need to set from session first, then add
new value and all save again back to session...understand ? :)
--
Lep pozdrav,
Yes, I understand!
How do I solve this?
On 26 Feb., 20:30, Tilen Majerle tilen.maje...@gmail.com wrote:
every time you reload page, this variable in class is set to array()
(always starts empty), them you set one value to it and save to session,
when you reload second page, you need to set