Skip to content

eglis/Admin

Repository files navigation

Admin

A simple admin module. This module helps to handle all other modules like:

  • CMS

Prerequisites

You will need:

Apache Configuration

Now we have to tell to our Apache webserver that we have a new site called myproject.com (the tld could be changed properly as you like) Open the /etc/hosts file and type:

127.0.0.1 myproject.com www.myproject.com

Create a new file by your preferite text editor I am using the "nano":

sudo nano /etc/apache2/sites-available/myproject.conf

and paste this text:

<VirtualHost *:80>
	ServerName myproject.com
	ServerAlias www.myproject.com
	DocumentRoot /var/www/PROJECT-FOLDER/public
	SetEnv APPLICATION_ENV "development"
	<Directory /var/www/PROJECT-FOLDER/public>
	    DirectoryIndex index.php
	    AllowOverride All
	    Order allow,deny
	    Allow from all
	</Directory>
</VirtualHost>

and then enable the website configuration by this shell command:

sudo a2ensite myproject

and reload the Apache configuration by this shell command:

service apache2 reload

Getting Started

To get the application running, perform the following steps:

  1. Create a new application by Zend Framework 2 cloning the Skeleton.
  2. After creation, paste the following JSON into the "composer.json" text file within the repositories section:
    [
        {
            "type": "vcs",
            "url": "https://github.com/shineisp/Admin.git"
        }
    ],
  1. Run the following commands from the console:
cd YOUR-INSTALLATION-PATH
composer update
  1. In the /config/application.config.php you have to enable these default modules:

    'AssetManager', 'ScnSocialAuth', 'ZfcBase', 'ZfcUser', 'GoalioMailService', 'GoalioForgotPassword', 'ZfcDatagrid', 'ZfcAdmin', 'BjyAuthorize', 'GoogleMaps',

    // Shine Software module 'Base',
    'Main'
    'Admin'

  2. Set the pdo.local.php with the mysql account

  3. Import the data/data.sql dump into you MySQL database

  4. Enable the module in the config/application.config.php

  5. Now open your preferite browser and type: http://www.myproject.com/.

  6. Hooray! You will see the standard Zend Framework page! Now you can see the module in action! How simple was that??

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published