39 lines
661 B
PHP
39 lines
661 B
PHP
<?php
|
|
|
|
/**
|
|
* main actions.
|
|
*
|
|
* @package doctrine_website
|
|
* @subpackage main
|
|
* @author Your name here
|
|
* @version SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
|
|
*/
|
|
class mainActions extends sfActions
|
|
{
|
|
/**
|
|
* Executes index action
|
|
*
|
|
*/
|
|
public function executeIndex()
|
|
{
|
|
$blogPostTable = Doctrine_Manager::getInstance()->getTable('BlogPost');
|
|
|
|
$this->latestBlogPosts = $blogPostTable->retrieveLatest(5);
|
|
}
|
|
|
|
public function executeAbout()
|
|
{
|
|
|
|
}
|
|
|
|
public function executeDownload()
|
|
{
|
|
|
|
}
|
|
|
|
public function executeTrac()
|
|
{
|
|
$this->redirect('http://phpdoctrine.net/trac');
|
|
}
|
|
}
|