Tuesday, August 27, 2013

Re: Notice (8): Undefined variable:


On 27 Aug 2013, at 16:33, Diego Santos <diegosantooos53@gmail.com> wrote:

$ this-> set ('database', $ banks);

Sets the variable $database that you need to echo in your view (not $banks)

So a view like this

<?

echo $database

?>

Although I would avoid the word 'database' as your variable name altogether. Not saying it would cause any issue but I avoid any possible conflict words

Paul

No comments: