22 lines
617 B
PHP
22 lines
617 B
PHP
<?php
|
|
|
|
namespace Deblan\Bundle\BlogBundle\Page;
|
|
|
|
use Trinity\Bundle\ContentManagerBundle\Model\Page;
|
|
|
|
class PostPage extends Page
|
|
{
|
|
public function __construct($template = 'DeblanBlogBundle:Default:post.html.twig')
|
|
{
|
|
parent::__construct($template);
|
|
}
|
|
|
|
public function getConfiguration()
|
|
{
|
|
return $this->configuration
|
|
->setDataModel('\Deblan\Bundle\BlogBundle\Model\Post', 'Article')
|
|
->setDefaultController('DeblanBlogBundle:Default:post')
|
|
->setDefaultControllerClass('Deblan\Bundle\BlogBundle\Controller\DefaultController::postAction');
|
|
}
|
|
}
|