-
Notifications
You must be signed in to change notification settings - Fork 16
/
examples_instructions.txt
70 lines (48 loc) · 1.66 KB
/
examples_instructions.txt
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
63
64
65
66
67
68
69
70
Examples and Buiders setup
--------------------------
A) Unzip package into a web folder
B) Install Database script file sql/mrp.sql
C) Modify the following lines of config/application.config.php" according to your db and
web server
/**
* MySQL User
*/
define("DBUSER","PUT_YOUR_USERNAME");
/**
* MySQL Password
*/
define("DBPASSWORD","PUT_YOUR_PASSWORD");
/**
* MySQL Database
*/
define("DBNAME","PUT_YOUR_DB_NAME");
/**
* MySQL Port
*/
define('DBPORT', '3306');
/**
* Defines a constant for site URL
* @note without the ending slash
* @example: http://localhost/webmvc
*/
define("SITEURL","http://PUT_YOUR_HOST/PUT_YOUR_FOLDER");
D) Modify the following lines of "util/mysqlreflection/mysqlreflection.config.php" according
to your db
define("DBHOST","PUT_YOUR_DB_HOST");
define("DBUSER","PUT_YOUR_USERNAME");
define("DBPASSWORD","PUT_YOUR_PASSWORD_HERE");
define("DBNAME","PUT_YOUR_DB_NAME_HERE");
define('DBPORT', '3306');
E)
/**
* Defines a constant for a temporary folder
*/
define("APP_TEMP_PATH", "D:\\gitmvc\\temp");
F) Run: http://YOUR_HOST/YOUR_FOLDER
ADDITIONAL INSTRUCTION (FOR WINDOWS USERS ONLY)
If you don't have an installed Apache HTTP server then you can use PHP built-in webserver.
To do this follow the previous instruction steps but replace the following lines:
C) define("SITEURL","http://localhost:8000/PUT_YOUR_FOLDER");
Edit mvc_bootstrap.bat and update lines "set FRAMEWORK_PATH=D:\gitmvc" with YOUR_FOLDER.
Choose also your PHP version having the care to have previously downloaded and installed it into your system.
LIVE EXAMPLES: www.webmvcframework.com