Thursday, January 1, 2009

Re: $cakeDebug variable undefined

Thank you

I changed:
<?php echo $this->element('footer'); ?>

to this:
<?php echo $this->element('footer', array('cakeDebug' =>
$cakeDebug)); ?>


Im a noob, did not know I had to pass in any variables.

How would I make a variable a global variable? if I wanted to fix this
the other way you mentioned (using cake)


thanks again

gemmes

On Jan 1, 3:19 pm, WebbedIT <p...@webbedit.co.uk> wrote:
> I believe element() has deprecated renderElement as a convenient
> wrapper .. it's certainly the function used widely in the CookBook.
>
> Does the footer.ctp file include a reference to the $cakeDebug
> variable at line 10?  If so, is this a global variable or are you
> passing it through when calling the element?
>
> Try looking athttp://book.cakephp.org/view/560/Passing-Variables-into-an-Element
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: