xlabs/surveybundle

调查管理包

安装: 127

依赖者: 0

建议者: 0

安全: 0

类型:laravel-library

1.0.12 2023-11-29 21:29 UTC

This package is auto-updated.

Last update: 2024-09-29 23:21:05 UTC


README

调查管理器系统

安装

通过composer安装

php -d memory_limit=-1 composer.phar require atm/surveybundle

在你的AppKernel中

public function registerbundles()
{
    return [
    	...
    	...
    	new ATM\SurveyBundle\ATMSurveyBundle(),
    ];
}

路由

追加到主路由文件

# app/config/routing.yml
  
atm_survey_admin:
    resource: "@ATMSurveyBundle/Controller/AdminController.php"
    type: annotation
    prefix:   /members/admin

atm_survey:
    resource: "@ATMSurveyBundle/Controller/SurveyController.php"
    type: annotation
    prefix:   /

配置示例

以下显示默认值

# app/config/config.yml
  
atm_survey:
    user: User namespace
    redirect_route_after_survey: route after survey submision