Setting view variables from pages_controller??

2007-03-16 Thread [EMAIL PROTECTED]

Hi all,
I have setup a pages_controller.php with the following function to
call the static homepage (home.thtml):
function home() {
$this-set('searchElement', $this-requestAction('/docs/
search', array('return')));
$this-display();
}


However on home.thtml, it says the the variable $searchElement is
undefined. Does anyone know how to pass variables from
pages_controller.php to its views?

Thanks in advance!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Setting view variables from pages_controller??

2007-03-16 Thread rtconner

as far as I know... you've got it right.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---