webundle / puzzle-app-expertise
拼图应用程序专业能力
1.0.0
2018-09-24 13:24 UTC
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/orm: ^2.5
- guzzlehttp/guzzle: ^6.3
- incenteev/composer-parameter-handler: ^2.0
- sensio/distribution-bundle: ^5.0.19
- sensio/framework-extra-bundle: ^5.0.0
- symfony/assetic-bundle: ^2.8
- symfony/monolog-bundle: ^3.1.0
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.6.4
- symfony/symfony: 3.4.*
- twig/twig: ^1.0||^2.0
- webundle/puzzle-admin-expertise: ^1.0
This package is auto-updated.
Last update: 2024-09-25 06:54:04 UTC
README
=========================
拼图应用程序专业能力
步骤 1: 下载包
打开命令行,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本
composer require webundle/puzzle-app-expertise
步骤 2: 启用包
然后,通过将其添加到项目中的注册包列表中来启用包,文件为 app/AppKernel.php
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Puzzle\App\ExpertiseBundle\PuzzleAppExpertiseBundle(), ); // ... } // ... }
步骤 3: 注册路由
在应用中加载包的路由定义(通常在 app/config/routing.yml
文件中)
app/config/routing.yml
puzzle_app: resource: "@PuzzleAppExpertiseBundle/Resources/config/routing.yml"
步骤 4: 配置包
然后,通过将其添加到项目 app/config/config.yml
文件中的注册包列表下,来配置包
# Puzzle App Expertise puzzle_app_expertise: title: expertise.title description: expertise.description icon: expertise.icon templates: service: list: 'AppBundle:Expertise:list_services.html.twig' show: 'AppBundle:Expertise:service.html.twig' project: list: 'AppBundle:Expertise:list_projects.html.twig' show: 'AppBundle:Expertise:project.html.twig' staff: list: 'AppBundle:Expertise:list_staffs.html.twig' show: 'AppBundle:Expertise:staff.html.twig' partner: list: 'AppBundle:Expertise:list_partners.html.twig' testimonial: list: 'AppBundle:Expertise:list_testimonials.html.twig' show: 'AppBundle:Expertise:testimonial.html.twig' faq: list: 'AppBundle:Expertise:list_faqs.html.twig' show: 'AppBundle:Expertise:faq.html.twig'