Phillip Harrington dot com home page
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
config
src/PhdcHome
view
.gitignore
Module.php
README.md
TODO.md
autoloader_classmap.php
composer.json

README.md

PhdcHome

Zend Framework 2 vendor style module for the Phillip Harrington dot com home page. Live!

Features

(Coming soon; in progress)

  • Create pages & routes.
  • Blog w/ archives, entry pages, feeds, and XMLRPC for pings/trackbacks.
  • Move config into an autoload file and create dist file for it.

Dependencies

Zend Framework 2 Modules

And their respective dependencies.

Asset Dependencies

Installation

Composer

"repositories": [
    {
        "type": "vcs",
        "url": "git@github.com:philsown/PhdcHome.git"
    }
],
"require": {
    "php": ">=5.3.3",
    "philsown/PhdcHome": "dev-master"
}

Git Fork & Clone

  • Fork this to your own repository, then:
// replace {username} with your username
git clone git@github.com:{username}/PhdcHome.git

Doctrine config

  • Copy config/doctrine.php.dist into your ZF2 application's config/autoload directory
  • Rename to doctrine.local.php
  • Edit to have the correct settings for your database.

The resulting file should look something like this:

# config/autoload/doctrine.local.php
return array(
    'doctrine' => array(
        'connection' => array(
            'orm_default' => array(
                'params' => array(
                    'host'     => '{your db host}',
                    'user'     => '{your db username}',
                    'password' => '{your db password}',
                    'dbname'   => '{your db name}',
                ),
            ),
        ),
    ),
);

Create Assetic directory

  • Create a folder in your ZF2 application public folder called "assets."
  • Make sure the webserver can write here.

Customization

I used BootSwatch for their free Journal theme. Simply download your desired Bootstrap compatible theme from there or anywhere, or use the default Bootstrap files and customize to suit.

Tools

  • Sublime Text 3
  • Other stuff. Update this.
  • Add link to my yet to be created blog entry about my sublime set-up.