Yes

On Sun, Sep 11, 2011 at 9:06 PM, euromark <[email protected]>wrote:

> @zaky
> you meant..
> $this->set(compact('campos'));
>
> @aortizhi
> you can then access it with
> $campos['Model']['field']
>
>
>
>
> On 11 Sep., 19:21, Zaky Katalan-Ezra <[email protected]> wrote:
> > $this->set('campos',$campos);
> > or
> > $this->set(compact($campos));
> >
> >
> >
> >
> >
> >
> >
> > On Sun, Sep 11, 2011 at 7:28 PM, aortizhi <[email protected]> wrote:
> > > Hi everyone, i have a problem passing infomation to my view. Here's my
> > > code
> >
> > > in my controller
> >
> > > public $campos; //global variable
> >
> > > if (empty($this->data)) {
> > >     $this->data = $this->ArchivosSistema->read(null, $id);
> > >     $this->campos=$this->ArchivosSistema->LeerTXT($this-
> > > >data['ArchivosSistema']['nombreTXT']);
> > > }
> >
> > > campos is an array that is return from my model with some information
> > > that i would like to show in my view but a i don't know how to access
> > > it
> >
> > > in my view i have this:
> >
> > > echo $this->ArchivosSistemas->$campos;
> >
> > > but it shows me this, "undefined property: View::$ArchivosSistemas",
> > > ArchivosSistemas is my controller's name.
> >
> > > Can anyone help me please.
> >
> > > --
> > > Our newest site for the community: CakePHP Video Tutorials
> > >http://tv.cakephp.org
> > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > > others with their CakePHP related questions.
> >
> > > To unsubscribe from this group, send email to
> > > [email protected] For more options, visit this
> group
> > > athttp://groups.google.com/group/cake-php
>
> --
> 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
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Regards,
Zaky Katalan-Ezra
QA Administrator
www.IGeneriX.com
Sites.IGeneriX.com
054-7762312

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to