src/Flowcode/DashboardBundle/Controller/JobController.php
public function showAction(Job $job)
    {
        $editForm = $this->createForm(new JobType(), $job, array(
            'action' => $this->generateUrl('admin_amulen_job_update', array('id' => $job->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($job->getId(), 'admin_amulen_job_delete');

        return array(

            'job' => $job, 'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
public function showAction(Job $job)
    {
        $editForm = $this->createForm(new JobType(), $job, array(
            'action' => $this->generateUrl('admin_amulen_job_update', array('id' => $job->getid())),
            'method' => 'PUT',
        ));
        $deleteForm = $this->createDeleteForm($job->getId(), 'admin_amulen_job_delete');

        return array(

            'job' => $job, 'edit_form' => $editForm->createView(),
            'delete_form' => $deleteForm->createView(),

        );
    }
Finds and displays a Job entity.

@Route("/{id}/show", name="admin_amulen_job_show", requirements={"id"="\d+"})
@Method("GET")
@Template()