2017 © Pedro Peláez
 

library cms-module

image

midnight/cms-module

  • Monday, June 16, 2014
  • by MidnightDesign
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CMS Module for Zend Framework 2

Installation

  1. Install the module via Composer.
  2. Add the following dependencies to your config/application.config.php:, (*1)

    'Midnight\Wysiwyg',
    'ZfcAdmin',
    'AssetManager',
    'Midnight\AdminModule',
    'DoctrineModule',
    'DoctrineORMModule',
    'Midnight\UserModule',
    'ZfcRbac',
    'Midnight\CmsModule',
  3. Make sure the directories data/cms/pages and data/cms/blocks exist and are writable., (*2)

  4. Make sure your Doctrine connection (orm_default) is set up correctly.
  5. Create the new tables by running "vendor/bin/doctrine-module orm:schema:update --force"
  6. Create a new user programmatically: (Yes, this is awful and should be handled differently), (*3)

    $this
        ->getServiceLocator()
        ->get('user.service')
        ->register('jim@example.com', 'password-here');
  7. Set the is_admin flag of your newly created user to 1, (*4)

  8. Make sure jQuery is loaded in your layout:, (*5)

    $this->headScript()
        ->prependFile('//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js');

Now you can go to /admin/cms and log in with the user you've just created., (*6)

The Versions