set($data) dosen´t work

2010-07-10 Thread Davor Ilic
i use it like this: $data = array( 'kat_checkboxes', $this-Kat-find('all'), 'pmedia_checkboxes', $this-Productmedia-find('all') ); $this-set($data); and in the view he tell me that the vars kat_checkboxes and pmedia_checkboxes doesn´t exist... did id do something wrong by creating the

Re: set($data) dosen´t work

2010-07-10 Thread Jeremy Burns | Class Outfit
Doing it like that they'd be numeric wouldn't they? In other words, $this-data[0] would equal 'kat_checkboxes'. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 10 Jul 2010, at 18:35, Davor Ilic wrote: i use it like this:

Re: set($data) dosen´t work

2010-07-10 Thread Davor Ilic
oh shit xD didn´t look at the array by creating it because i copied it from set(kat_checkboxes', $this-Kat-find('all')); and didn, look at the that are stupid issues. thank you for this hot tip hehe 2010/7/10 Jeremy Burns | Class Outfit jeremybu...@classoutfit.com Doing it like that they'd be

Re: set($data) dosen´t work

2010-07-10 Thread stefano
or you can use $this-set(compact($var)) in the view $var On Sat, Jul 10, 2010 at 2:10 PM, Davor Ilic webfa...@gmail.com wrote: oh shit xD didn´t look at the array by creating it because i copied it from set(kat_checkboxes', $this-Kat-find('all'));  and didn, look at the that are stupid

Re: set($data) dosen´t work

2010-07-10 Thread Davor Ilic
ok that´s cool. that meen the variable named i use in compact is showing also in the view, thats very cool. thanks 2010/7/11 stefano ssalvat...@gmail.com or you can use $this-set(compact($var)) in the view $var On Sat, Jul 10, 2010 at 2:10 PM, Davor Ilic webfa...@gmail.com wrote: oh