The solution is to set your variables in the controller with $this-
>set().  In Cake 1.2 you can also use $this->set() in views.

On Mar 2, 4:17 pm, "jamiro" <[EMAIL PROTECTED]> wrote:
> hello, I need a solution to this problem,
> I have a file config.php:
>  <?php $x="test"; ?>
>
> I have a file page.thtml
> <?php echo renderElement('config'); ?>
> <?php echo $x ; ?>
>
> result:
> Notice: Undefined variable: x in /var/www/html/
>
> Also I test with :  vendor('config'); not work
>
> PS: Using include('config.php'); it works but there is no another
> solution? thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to