tags:

views:

54

answers:

2

i have to get data from one specific field in my database and set it into a variable (most likely this has to go into the controller), so that i can echo this on multiple pages in my webapplication.

don't know if it's necassery to say, but i make use of the cakePHP framework.

thanks in advance!

+1  A: 

This is in the book, http://book.cakephp.org/view/821/set

$this->set('myvar', $data);

Will set a $myvar in your view.

DavidYell
A: 

If you need to use this data on multiple Pages in your Web Application, maybe you are better suited with an element

nolandark