Blog\Controller\IndexController::indexAction PHP 메소드

indexAction() 공개 메소드

Index action, list all documents with comments
public indexAction ( ) : array
리턴 array
    public function indexAction()
    {
        $model = new Model\Comment();
        $documentList = $model->getDocumentList();
        return array('document_list' => $documentList);
    }