1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/website/apps/frontend/modules/blog/actions/components.class.php

10 lines
249 B
PHP
Raw Normal View History

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