public function create_new($request)
    {
        if (!$this->canCreate()) {
            return $this->httpError(403, "You do not have permission to create new " . $this->getPluralName());
        }
        $this->addCrumb('Create new ' . $this->getSingularName());
        return $this->customise(['Form' => $this->CreationForm()]);
    }
public function create_new($request)
    {
        if (!$this->canCreate()) {
            return $this->httpError(403, "You do not have permission to create new " . $this->getPluralName());
        }
        $this->addCrumb('Create new ' . $this->getSingularName());
        return $this->customise(['Form' => $this->CreationForm()]);
    }
public function create_new ( $ request ) { if ( ! $ this -> canCreate ( ) ) { return $ this -> httpError ( 403 , "You do not have permission to create new " . $ this -> getPluralName ( ) ) ; } $ this -> addCrumb ( 'Create new ' . $ this -> getSingularName ( ) ) ; return $ this -> customise ( [ 'Form' => $ this -> CreationForm ( ) ] ) ; }
URL method to create a new record
@param HTTPRequest $request
@return \SilverStripe\View\ViewableData_Customised|void
@throws HTTPResponse_Exception
URL method to create a new record