Yet another ZF2 Cms module
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
data
src
view
Module.php
README.md
composer.json

README.md

ThoriumCms

Version 0.0.1 created by Yanick Rochon

Introduction

ThoriumCMS is a module to manage static or dynamic pages.

Requirements

Features / Goals

  • offer a very lightweight, pluggable, CMS module that can be easily extended and customized

Installation

Main Setup

  1. Install the ZfcBase and the ZfcUser ZF2 modules by cloning them into ./vendor/ and enabling them in your application.config.php file.
  2. Clone this project into your ./vendor/ directory and enable it in your application.config.php file.
  3. Import the SQL schema located in ./vendor/ThoriumCms/data/schema.sql.

Post-Install: Zend\Db

  1. If you do not already have a valid Zend\Db\Adapter\Adapter in your service manager configuration, put the following in ./config/autoload/database.local.php:

     <?php
    
     $dbParams = array(
         'database'  => 'changeme',
         'username'  => 'changeme',
         'password'  => 'changeme',
         'hostname'  => 'changeme',
     );
    
     return array(
         'service_manager' => array(
             'factories' => array(
                 'Zend\Db\Adapter\Adapter' => function ($sm) use ($dbParams) {
                     return new Zend\Db\Adapter\Adapter(array(
                         'driver'    => 'pdo',
                         'dsn'       => 'mysql:dbname='.$dbParams['database'].';host='.$dbParams['hostname'],
                         'database'  => $dbParams['database'],
                         'username'  => $dbParams['username'],
                         'password'  => $dbParams['password'],
                         'hostname'  => $dbParams['hostname'],
                     ));
                 },
             ),
         ),
     );