Let me try to explain this again
$this->set('posts', $this->Post->findAll());
What this is saying is PostsController set the variable $posts for the view using data retrieved from the Post model.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On 5/9/06, calzone <
[EMAIL PROTECTED]> wrote:
Look at the blog tutorial:
http://manual.cakephp.org/chapter/18
About one third of the way down the page you see:
<?php
class PostsController extends AppController
{
var $name = 'Posts';
function index()
{
$this->set('posts', $this->Post->findAll());
}
}
?>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
