/
README.md~
64 lines (48 loc) · 2 KB
/
README.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Introduction
============
Based on ZF2 Skeleton and the Album tutorial, this ZF2 application extends this further by migrating fully to Doctrine2, adding comments for Albums.
There is provision for Dynamic Modules & layouts, seperating the various layers.
The default module has routing setup with a top bar navigation, along with a GUI to demonstrate an AJAX RESTful service.
A CMS that can builds has Pagination, Dual Navigation, Zend Auth, Doctrine2, Flash Messages, REST, Dynamic Modules/layouts, and secure CMS, with user CRUD
HOSTING STRUCTURE
-----------------
* Folder structure is /NAMEOFNEWPROJECT/public/
* Public is the Document-root for the server.
* Public should not be present prior to cloning from GIT, but setup in the host file
INITIAL SETUP
-------------
```bash
cd ../NAMEOFNEWPROJECT
git clone https://github.com/adriancallaghan/cmszend2.git NAMEOFNEWPROJECT (will clone the project into the new project)
cd NAMEOFNEWPROJECT
mv config/autoload/examplelocal.php config/autoload/local.php
nano config/autoload/local.php (set database credientials)
php composer.phar self-update
php composer.phar install
./vendor/bin/doctrine-module orm:schema-tool:create
git remote rm origin
git init
git add *
git commit -m "first commit"
git remote add origin https://github.com/NEW-GIT-REPO-LOCATION.git
git push -u origin master
```
UPDATE USING GIT/COMPOSER & DOCTRINE2
-------------------------------------
```bash
git pull
php composer.phar install
./vendor/bin/doctrine-module orm:schema-tool:create./vendor/bin/doctrine-module orm:validate-schema
```
UPDATE DB IF NECESSARY (Caution it can cause the db to flush)
-------------------------------------------------------------
```bash
./vendor/bin/doctrine-module orm:schema-tool:update --force
```
Admin
-----
You need to add a username, active (true) boolean and (md5) password combination into the cmsuser table in order to be able to login to the cms.
The password can be easily md5'd on the cmd line with something like
```bash
php -r 'echo md5("SOME PASS");'
```