PHP 클래스 AppBundle\Controller\Admin\BlogController

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

공개 메소드들

메소드 설명
deleteAction ( Request $request, Post $post ) Deletes a Post entity.
editAction ( Post $post, Request $request ) Displays a form to edit an existing Post entity.
indexAction ( ) Lists all Post entities.
newAction ( Request $request ) Creates a new Post entity.
showAction ( Post $post ) Finds and displays a Post entity.

비공개 메소드들

메소드 설명
createDeleteForm ( Post $post ) : Form Creates a form to delete a Post entity by id.

메소드 상세

deleteAction() 공개 메소드

Deletes a Post entity.
public deleteAction ( Request $request, Post $post )
$request Symfony\Component\HttpFoundation\Request
$post AppBundle\Entity\Post

editAction() 공개 메소드

Displays a form to edit an existing Post entity.
public editAction ( Post $post, Request $request )
$post AppBundle\Entity\Post
$request Symfony\Component\HttpFoundation\Request

indexAction() 공개 메소드

This controller responds to two different routes with the same URL: * 'admin_post_index' is the route with a name that follows the same structure as the rest of the controllers of this class. * 'admin_index' is a nice shortcut to the backend homepage. This allows to create simpler links in the templates. Moreover, in the future we could move this annotation to any other controller while maintaining the route name and therefore, without breaking any existing link.
public indexAction ( )

newAction() 공개 메소드

Creates a new Post entity.
public newAction ( Request $request )
$request Symfony\Component\HttpFoundation\Request

showAction() 공개 메소드

Finds and displays a Post entity.
public showAction ( Post $post )
$post AppBundle\Entity\Post