TargetsController

Extends \Symfony\Bundle\FrameworkBundle\Controller\AbstractController

Class TargetsController provides CRUD operations for Targets Entity

package

App\Controller

Route

("/targets")

Methods

Delete a selected target from the tablet

deleteTargetsAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Targets $target) : \Symfony\Component\HttpFoundation\Response
Route

("/{id}", name="targets_delete", methods={"DELETE"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\Response

Edit a target in the table

editTargetsAction(\Symfony\Component\HttpFoundation\Request $request, \App\Entity\Targets $target) : \Symfony\Component\HttpFoundation\Response
Route

("/{id}/edit", name="targets_edit", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\Response

Show a table of all targets from the table

indexTargetsAction(\App\Repository\TargetsRepository $targetRepository) : \Symfony\Component\HttpFoundation\Response
Route

("/", name="targets_index", methods={"GET"})

Arguments

Response

\Symfony\Component\HttpFoundation\Response

Create a new table in the table

newTargetsAction(\Symfony\Component\HttpFoundation\Request $request) : \Symfony\Component\HttpFoundation\Response
Route

("/new", name="targets_new", methods={"GET","POST"})

Arguments

$request

\Symfony\Component\HttpFoundation\Request

Response

\Symfony\Component\HttpFoundation\Response

Show a selected target in full detail from the table

showTargetsAction(\App\Entity\Targets $target) : \Symfony\Component\HttpFoundation\Response
Route

("/{id}", name="targets_show", methods={"GET"})

Arguments

Response

\Symfony\Component\HttpFoundation\Response