Components\ContactManager\Controllers\Backend\ContactCategoriesController::show PHP Method

show() public method

Display the specified contact.
public show ( integer $id ) : Response
$id integer
return Response
    public function show($id)
    {
        $category = ContactCategory::with('contacts')->findOrFail($id);
        if (!$category) {
            App::abort('404');
        }
        $this->layout->title = "Contacts in category {$category->name}";
        $this->layout->content = View::make('contact_categories::show')->with('category', $category);
    }