- Install the module via Composer.
-
Add the following dependencies to your config/application.config.php
:, (*1)
'Midnight\Wysiwyg',
'ZfcAdmin',
'AssetManager',
'Midnight\AdminModule',
'DoctrineModule',
'DoctrineORMModule',
'Midnight\UserModule',
'ZfcRbac',
'Midnight\CmsModule',
-
Make sure the directories data/cms/pages
and data/cms/blocks
exist and are writable., (*2)
- Make sure your Doctrine connection (orm_default) is set up correctly.
- Create the new tables by running "vendor/bin/doctrine-module orm:schema:update --force"
-
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');
-
Set the is_admin
flag of your newly created user to 1
, (*4)
-
Make sure jQuery is loaded in your layout:, (*5)
$this->headScript()
->prependFile('//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js');