GitXplorerGitXplorer
Y

web

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
ce2a622ed9a4dc5d088c3278308de55db852f430

Suite

YYouriT committed 13 years ago
Unverified
36324bd56ff0e009dc28cefdc1534f73f4bc1c66

Suite

YYouriT committed 13 years ago
Unverified
20cbc9e4c5ff8c0a057ab05f18f2c720509469e0

Tests

YYouriT committed 13 years ago
Unverified
17860f618ed83e83a91257c23a23fd49d106645a

ZF2

YYouriT committed 13 years ago
Unverified
53bd3414663d83b45526956d1a40ff141e8d8696

Update .gitignore

YYouriT committed 13 years ago
Unverified
ca371fbe4e71ad8f1ff37760b33f2b2b747cfd17

ZF1 + Doctrine

YYouriT committed 13 years ago

README

The README file for this repository.

ZendSkeletonApplication

Introduction

This is a simple, skeleton application using the ZF2 MVC layer and module systems. This application is meant to be used as a starting place for those looking to get their feet wet with ZF2.

Installation

Using Composer (recommended)

The recommended way to get a working copy of this project is to clone the repository and use composer to install dependencies:

cd my/project/dir
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar install

Using Git submodules

Alternatively, you can install using native git submodules. This method works fine but it is recommended that you use Composer due to the dependency management it provides.

git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive

You will also need to update public/index.php and modules/Application/Module.php to enable autoloading. For public/index.php, replace lines 2-13 with:

use Zend\Loader\AutoloaderFactory,
    Zend\ServiceManager\ServiceManager,
    Zend\Mvc\Service\ServiceManagerConfiguration;

chdir(dirname(__DIR__));
require_once (getenv('ZF2_PATH') ?: 'vendor/ZendFramework/library') . '/Zend/Loader/AutoloaderFactory.php';

// Setup autoloader
AutoloaderFactory::factory();

Within modules/Application/Module.php add this method to the Application class:

public function getAutoloaderConfig()
{
    return array(
        'Zend\Loader\StandardAutoloader' => array(
            'namespaces' => array(
                __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
            ),
        ),
    );
}

Virtual Host

Afterwards, set up a virtual host to point to the public/ directory of the project and you should be ready to go!