Hi,
I've got a rather simple question : how can you access to component
variables in views or in elements? In my components, i have :
$this->controller->set('recentpapers',$data);
I tought i could use the recentpapers var directly in my view :
<?php foreach ($recentpapers as $paper): ?>
...
<?php endforeach; ?>
But cake tells me this : "Warning: Invalid argument supplied for
foreach() in
D:\wamp\www\europassur\app\views\elements\papers\recent_papers.thtml on
line 2"
The others elements seem to work fine (cake is able ton find the
component and so on...)
Any idea?
Thanks a lot and good evening
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---