定制 phlexible/element-finder-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phlexible/element-finder-bundle

Composer 安装命令:

composer require phlexible/element-finder-bundle

包简介

phlexible element finder bundle

关键字:

README 文档

README

The PhlexibleElementFinderBundle adds support for a finder field in phlexible.

Installation

  1. Download PhlexibleElementFinderBundle using composer
  2. Enable the Bundle
  3. Import PhlexibleElementFinderBundle routing
  4. Update your database schema
  5. Clear the symfony cache

Step 1: Download PhlexibleElementFinderBundle using composer

Add PhlexibleElementFinderBundle by running the command:

$ php composer.phar require phlexible/element-finder-bundle "~1.0.0"

Composer will install the bundle to your project's vendor/phlexible directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phlexible\Bundle\ElementFinderBundle\PhlexibleElementFinderBundle(),
    );
}

Step 3: Import PhlexibleElementFinderBundle routing

Import the PhlexibleElementFinderBundle routing.

For frontend:

# app/config/routing.yml
phlexible_element_finder_render:
    resource: "@PhlexibleElementFinderBundle/Controller/RenderController.php"
    type:     annotation

For administration backend:

# app/config/admin_routing.yml
phlexible_element_finder_config:
    resource: "@PhlexibleElementFinderBundle/Controller/ConfigController.php"
    type:     annotation

Step 4: Update your database schema

Now that the bundle is set up, the last thing you need to do is update your database schema because the element finder includes entities that need to be installed in your database.

For ORM run the following command.

$ php app/console doctrine:schema:update --force

Step 5: Clear the symfony cache

If you access your phlexible application with environment prod, clear the cache:

$ php app/console cache:clear --env=prod

统计信息

  • 总下载量: 156
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-10-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固