midnight / cms-module
Installs: 25
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/midnight/cms-module
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: 2025-10-20 02:49:36 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/pagesanddata/cms/blocksexist 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_adminflag 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.