Components\ContactManager\Controllers\Backend\ContactController::show PHP Метод

show() публичный Метод

Display the specified resource.
public show ( integer $id, $form_id )
$id integer
$form_id
    public function show($id, $form_id)
    {
        // Get only the form that matches the specified form id
        $form = $this->getForm($form_id);
        $model_name = "Components\\ContactManager\\Models\\{$form['model']}";
        $contact = $model_name::findOrFail($id);
        $this->layout->title = "Showing Contact Details";
        $this->layout->content = View::make("contact_manager::show")->with('title', "Showing Contact Details")->with('contact', $contact)->with('field_names', $form['field_names'])->with('fields', $form['fields']);
    }