PHP Класс AppBundle\Controller\BlogController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
commentFormAction ( Post $post ) : Response This controller is called directly via the render() function in the blog/post_show.html.twig template. That's why it's not needed to define a route name for it.
commentNewAction ( Request $request, Post $post )
indexAction ( $page )
postShowAction ( Post $post )

Описание методов

commentFormAction() публичный Метод

The "id" of the Post is passed in and then turned into a Post object automatically by the ParamConverter.
public commentFormAction ( Post $post ) : Response
$post AppBundle\Entity\Post
Результат Symfony\Component\HttpFoundation\Response

commentNewAction() публичный Метод

public commentNewAction ( Request $request, Post $post )
$request Symfony\Component\HttpFoundation\Request
$post AppBundle\Entity\Post

indexAction() публичный Метод

public indexAction ( $page )

postShowAction() публичный Метод

public postShowAction ( Post $post )
$post AppBundle\Entity\Post