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 

> or you can use
>
> $this->set(compact($var))
>
> in the view $var
>
> On Sat, Jul 10, 2010 at 2:10 PM, Davor Ilic  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 issues.
> > thank you for this hot tip hehe
> >
> > 2010/7/10 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:
> >>
> >>
> >> $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 set array?
> >>
> >>
> >>
> >> Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> >> with their CakePHP related questions.
> >>
> >> You received this message because you are subscribed to the Google
> Groups
> >> "CakePHP" group.
> >> To post to this group, send email to cake-php@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.comFor
> >>  more options, visit this group
> >> at http://groups.google.com/group/cake-php?hl=en
> >>
> >> Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> >> with their CakePHP related questions.
> >>
> >> You received this message because you are subscribed to the Google
> Groups
> >> "CakePHP" group.
> >> To post to this group, send email to cake-php@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> cake-php+unsubscr...@googlegroups.comFor
> >>  more options, visit this group
> >> at http://groups.google.com/group/cake-php?hl=en
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> > with their CakePHP related questions.
> >
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To post to this group, send email to cake-php@googlegroups.com
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.comFor
> >  more options, visit this group at
> > http://groups.google.com/group/cake-php?hl=en
> >
>
>
>
> --
> Stefano Salvatori M.
> http://stefano.salvatori.cl/
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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  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 issues.
> thank you for this hot tip hehe
>
> 2010/7/10 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:
>>
>>
>> $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 set array?
>>
>>
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help others
>> with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>>
>> Check out the new CakePHP Questions site http://cakeqs.org and help others
>> with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> at http://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>



-- 
Stefano Salvatori M.
http://stefano.salvatori.cl/

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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 

> 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:
>
>
>
>  $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 set array?
>
>
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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:
> 
> 
>   
>   $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 set array?
> 
>  
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


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 set array?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en