/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $clientes = Cliente::getListCmb(); $patrocinadores = Patrocinador::getListCmbAll(); $gerentes = Gerente::getListCmb(); $this->layout->title = 'Editar Proyecto'; $this->layout->titulo = 'Gestión de Proyectos'; $proyecto = Proyecto::find($id); $this->layout->nest('content', 'proyectos.edit', array('proyecto' => $proyecto, 'clientes' => $clientes, 'patrocinadores' => $patrocinadores, 'gerentes' => $gerentes)); }