> Thanks for your help, John, I got it working. Here's what I did:
>
> controllers/docs_controller.php:
> function getList()
> {
>   $this->set('doclist', $this->Doc->generateList(...);
> }

I would go about this slighty differently.

first, in your layout do:

<?php echo $this->renderElement ('docs/list'); ?>

Then, you need a file in /views/elements/docs/list.thtml inside of
which you put:

<?php $docs = $this->requestAction('/docs/getList'); ?>
<?php foreach ($docs as $doc): ?>

<?php endforeach; ?>

and lastly you need your get list func in DocsController

function getList()
{
    return $this->Doc->generateList();
}

hth

jon
-- 


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to