-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp_config.php
More file actions
105 lines (91 loc) · 3.02 KB
/
app_config.php
File metadata and controls
105 lines (91 loc) · 3.02 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
/**
* Ness PHP Framework.
* A solid php framework for fast and secure web applications.
*
* @author Sinan SALIH
* @license MIT License
* @copyright Copyright (C) 2018-2019 Sinan SALIH
*/
use Ness\Configuration;
/*
* === [Environment Configuration ] ===
* This configuration is used to set the
* development environment for your project.
* You can set 2 types of environments;
* "development" OR "publish"
*/
Configuration::setEnvironment('development');
/*
* === [Application Folder ] ===
* This configuration is generally for security.
* If you need to change the folder name of your
* application you must set it here.
*/
Configuration::setApplicationFolder('Application');
/*
* === [Application Resource Files ] ===
* This function is used to set the
* path of the resource.xml file which is used
* to store static values for your projects(ex; strings, image paths etc)
* Note; the core app location ('Application' by default) is excluded from the value.
*/
Configuration::setResourceFile('Resources.xml');
/*
* === [Application URL ] ===
* This configuration is used to set your
* web sites url. For example if you create a
* application that will be run in root set url to: "http://www.examplesite.com/"
* If your application will be a sub module/application of other application set it like:
* "http://www.examplesite.com/my_module".
*/
Configuration::setApplicationUrl('http://localhost/nessphp');
/*
* === [Is Application Root ] ===
* If your application's url is not accessable by "www.siteexample.com"
* set this false.
*/
Configuration::setRoot(false);
/*
* === [ Application Name ] ===
* This configuration is used to set name of your application.
*/
Configuration::setTitle('Hello World');
/*
* === [ Application Version ] ===
* This configuration is used to set version number of your application.
*/
Configuration::setVersion('1.0.0');
/*
* === [ Application Description ] ===
* This configuration is used to set description of your application.
*/
Configuration::setDescription('Ness PHP is a solid web framework for fast and secure web applications.');
/*
* === [ Application Maintenance Mode ] ===
* This configuration is used to set maintenance mode of your application.
* if Maintenance Mode is enabled user will see a message on screen like
* 'Under Maintenance'
*/
Configuration::enableMaintenance(false);
/**
* === [ Application Url Protection ] ===
* Protect your website from unwanted parameters, You can enable
* this feature for preventing visit with unwanted parameters
* supplied in array below.
*/
Configuration::setUrlProtected(false);
Configuration::UnwantedParameters(array("'"));
/**---------------------------------------------------------*/
/** Application Class */
/**---------------------------------------------------------*/
class Application
{
/**
* This method is called when your application is loaded. You can register
* your object mappers or do other configurations.
*/
public function Register()
{
}
}