1
0
mirror of synced 2024-12-16 16:16:04 +03:00
doctrine2/website/apps/frontend/modules/blog/actions/components.class.php
2007-09-06 17:42:07 +00:00

10 lines
249 B
PHP

<?php
class blogComponents extends sfComponents
{
public function executeLatest_blog_posts()
{
$blogPostTable = Doctrine_Manager::getInstance()->getTable('BlogPost');
$this->latestBlogPosts = $blogPostTable->retrieveLatest(5);
}
}