##UC Merced Zend 2 Template
##Installation: Run git clone https://github.com/motobreath/UC-Merced-Template-V2.git
Update Submodules:
git submodule init
git submodule update
##Hosting: A web server running php 5.4 is required. Tested on Apache, but other web servers should work just as well. Point your web server's root to the public folder. Add server variable APPLICATION_ENV=development to take advantage of the configuration options. In apache vhosts I use:
SetEnv APPLICATION_ENV development
NOTE: Mysql database is required to run admin section. It is possible to use other databases, just change the local.php configuration file to change database info.
Run SQL in /data/SQL to create tables
Include local.php in the /config/autoload folder with database connectivity info for your database:
<?php
return array(
'db' => array(
'dsn' => 'mysql:dbname=template;host=localhost',
'username' => 'user',
'password' => 'pass',
'host' => 'localhost'
),
);
?>
Don't forget to seed yourself as an admin! Login with your user to generate a userID to generate a userID then run this SQL (Where X=your user ID):
insert into roles(userID,role) values(X,'admin');