PHP 클래스 AppBundle\Controller\BlogController

상속: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
파일 보기 프로젝트 열기: alfonsomga/symfony.demo.on.roids 1 사용 예제들

공개 메소드들

메소드 설명
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