public function view($request)
    {
        if (!$this->currentRecord) {
            return $this->httpError(404, "{$this->recordType} not found");
        }
        if (!$this->currentRecord->canView()) {
            return $this->httpError(403, "You do not have permission to view this {$this->recordType}");
        }
        $form = $this->Form();
        $form->setActions(new FieldList());
        $form->makeReadonly();
        return $this->customise(array('Form' => $form));
    }
public function view($request)
    {
        if (!$this->currentRecord) {
            return $this->httpError(404, "{$this->recordType} not found");
        }
        if (!$this->currentRecord->canView()) {
            return $this->httpError(403, "You do not have permission to view this {$this->recordType}");
        }
        $form = $this->Form();
        $form->setActions(new FieldList());
        $form->makeReadonly();
        return $this->customise(array('Form' => $form));
    }
public function view ( $ request ) { if ( ! $ this -> currentRecord ) { return $ this -> httpError ( 404 , "{$this->recordType} not found" ) ; } if ( ! $ this -> currentRecord -> canView ( ) ) { return $ this -> httpError ( 403 , "You do not have permission to view this {$this->recordType}" ) ; } $ form = $ this -> Form ( ) ; $ form -> setActions ( new FieldList ( ) ) ; $ form -> makeReadonly ( ) ; return $ this -> customise ( array ( 'Form' => $ form ) ) ; }
Returns the view of the record
Returns the view of the record