midnight / cms-module
There is no license information available for the latest version (dev-master) of this package.
dev-master
2014-06-16 11:19 UTC
Requires
- php: >=5.3.3
- midnight/admin-module: dev-master
- midnight/page: dev-master
- midnight/user-module: ~2.0@dev
- midnight/wysiwyg-module: dev-master
- rwoverdijk/assetmanager: ~1.3
- zf-commons/zfc-rbac: ~2.3
This package is auto-updated.
Last update: 2024-10-20 00:48:30 UTC
README
Installation
-
Install the module via Composer.
-
Add the following dependencies to your
config/application.config.php
:'Midnight\Wysiwyg', 'ZfcAdmin', 'AssetManager', 'Midnight\AdminModule', 'DoctrineModule', 'DoctrineORMModule', 'Midnight\UserModule', 'ZfcRbac', 'Midnight\CmsModule',
-
Make sure the directories
data/cms/pages
anddata/cms/blocks
exist and are writable. -
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)
$this ->getServiceLocator() ->get('user.service') ->register('jim@example.com', 'password-here');
-
Set the
is_admin
flag of your newly created user to1
-
Make sure jQuery is loaded in your layout:
$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.