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

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

Show the form for creating a new resource.
public create ( $form_id )
$form_id
    public function create($form_id)
    {
        // Get only the form that matches the specified form id
        $form = $this->getForm($form_id);
        $categories = ContactCategory::lists('name', 'id');
        $this->layout->title = "Add new in {$this->module_name}";
        $this->layout->content = View::make("contact_manager::create_edit")->with('title', "Add new in {$this->module_name}")->with('form', $form)->with('categories', $categories);
    }