novuscom / cmfbundle
Symfony2 based CMF
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 17
Type:symfony-bundle
Requires
- helios-ag/fm-elfinder-bundle: 6.1.2
- dev-master / 0.0.7.x-dev
- 0.0.7.10
- 0.0.7.9
- 0.0.7.8
- 0.0.7.7
- 0.0.7.6
- 0.0.7.5
- 0.0.7.4
- 0.0.7.3
- 0.0.7.2
- 0.0.7.1
- 0.0.7.0
- 0.0.6.9
- 0.0.6.8
- 0.0.6.7
- 0.0.6.6
- 0.0.6.5
- 0.0.6.4
- 0.0.6.3
- 0.0.6.2
- 0.0.6.1
- 0.0.6.0
- 0.0.5.12
- 0.0.5.11
- 0.0.5.10
- 0.0.5.9
- 0.0.5.8
- 0.0.5.7
- 0.0.5.6
- 0.0.5.5
- 0.0.5.4
- 0.0.5.3
- 0.0.5.2
- 0.0.5.1
- 0.0.4.8
- 0.0.4.4
- 0.0.4.2
- 0.0.4.1
- 0.0.1
This package is not auto-updated.
Last update: 2024-12-21 19:21:19 UTC
README
CMF на Symfony2
Установка
Устанавливаем Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" php composer-setup.php php -r "unlink('composer-setup.php');"
Подробнее про уставноку composer https://getcomposer.org/download/
Устанавливаем Symfony
Выполняем следующие команды в корне сайта (на примере Ubuntu)
composer create-project symfony/framework-standard-edition site.local
(php composer.phar create-project symfony/framework-standard-edition site.local
)
Более подробная и актуальная информация об установке Symfony2 - http://symfony.com/download
Устанавливаем Novuscom.CMF
Страница пакета на сайте packagist.org https://packagist.org/packages/novuscom/cmfbundle
- В блоке require файла composer.json добавляем следующие пакеты:
"novuscom/cmfbundle": "^0.0.7", "gedmo/doctrine-extensions": "^2.4", "friendsofsymfony/user-bundle": "dev-master", "knplabs/knp-paginator-bundle": "^2.5", "helios-ag/fm-elfinder-bundle": "^6.0", "stfalcon/tinymce-bundle": "^0.4.0", "symfony/assetic-bundle": "^2.7", "knplabs/knp-menu": "^2.1", "knplabs/knp-menu-bundle": "^2.1", "apy/breadcrumbtrail-bundle": "dev-master", "liip/imagine-bundle": "^1.4", "openlss/lib-array2xml": "^0.0.10", "guzzlehttp/guzzle": "^6.2"
-
Выполняем команду
composer update
(php composer.phar update
)Composer поставит зависимости.
-
Добавляем в app/AppKernel.php строчки
new Novuscom\CMFBundle\NovuscomCMFBundle(), new Novuscom\CMFUserBundle\NovuscomCMFUserBundle(), new FOS\UserBundle\FOSUserBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), new FM\ElfinderBundle\FMElfinderBundle(), new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), new APY\BreadcrumbTrailBundle\APYBreadcrumbTrailBundle(), new Liip\ImagineBundle\LiipImagineBundle(),
- Содержимое файла app/config/config.yml
imports:
- { resource: "@NovuscomCMFBundle/Resources/config/config.yml" }
- { resource: "parameters.yml" }
- Содержимое файла app/config/routing.yml
NovuscomCMFBundle:
resource: "@NovuscomCMFBundle/Resources/config/routing.yml"
-
Выполняем команды
php bin/console doctrine:schema:update --dump-sql
и затемphp bin/console doctrine:schema:update --force
-
php bin/console cache:clear --env=prod --no-debug
composer dump-autoload --optimize
php bin/console cache:clear --env=prod --no-debug
php bin/console cache:clear
-
example.com/admin