pass information to the view
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 site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home