src/Controllers/CommentingController.php
public function ReplyForm($comment)
    {
        // Enables multiple forms with different names to use the same handler
        $form = $this->CommentsForm();
        $form->setName('ReplyForm_' . $comment->ID);
        $form->setHTMLID(null);
        $form->addExtraClass('reply-form');

        // Load parent into reply form
        $form->loadDataFrom([
            'ParentCommentID' => $comment->ID
        ]);

        // Customise action
        $form->setFormAction($this->Link('reply', $comment->ID));

        $this->extend('updateReplyForm', $form);

        return $form;
    }
public function ReplyForm($comment)
    {
        // Enables multiple forms with different names to use the same handler
        $form = $this->CommentsForm();
        $form->setName('ReplyForm_' . $comment->ID);
        $form->setHTMLID(null);
        $form->addExtraClass('reply-form');

        // Load parent into reply form
        $form->loadDataFrom([
            'ParentCommentID' => $comment->ID
        ]);

        // Customise action
        $form->setFormAction($this->Link('reply', $comment->ID));

        $this->extend('updateReplyForm', $form);

        return $form;
    }
public function ReplyForm ( $ comment ) { // Enables multiple forms with different names to use the same handler $ form = $ this -> CommentsForm ( ) ; $ form -> setName ( 'ReplyForm_' . $ comment -> ID ) ; $ form -> setHTMLID ( null ) ; $ form -> addExtraClass ( 'reply-form' ) ; // Load parent into reply form $ form -> loadDataFrom ( [ 'ParentCommentID' => $ comment -> ID ] ) ; // Customise action $ form -> setFormAction ( $ this -> Link ( 'reply' , $ comment -> ID ) ) ; $ this -> extend ( 'updateReplyForm' , $ form ) ; return $ form ; }
Create a reply form for a specified comment

@param  Comment $comment
@return Form
Create a reply form for a specified comment