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 <[email protected]>

> or you can use
>
> $this->set(compact($var))
>
> in the view $var
>
> On Sat, Jul 10, 2010 at 2:10 PM, Davor Ilic <[email protected]> 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 <[email protected]>
> >>
> >> 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
> >> [email protected]
> >> 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 [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]<cake-php%[email protected]>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 [email protected]
> >> To unsubscribe from this group, send email to
> >> [email protected]<cake-php%[email protected]>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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<cake-php%[email protected]>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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>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 [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