ladogton2010 commited on
Commit
f23d41b
·
1 Parent(s): a96c1e5

intialize attributes on Core's class constructor

Browse files
Files changed (1) hide show
  1. mvc/app/libs/Core.php +7 -3
mvc/app/libs/Core.php CHANGED
@@ -10,11 +10,15 @@
10
  */
11
 
12
  class Core{
13
- protected $defaultController = (ucwords('welcome'));
14
- protected $defaultMethod = 'index';
15
- protected $defaultParams = [];
16
 
17
  public function __construct(){
 
 
 
 
18
  // print_r($this->getURL());
19
  $url = $this->getURL();
20
 
 
10
  */
11
 
12
  class Core{
13
+ protected $defaultController;
14
+ protected $defaultMethod;
15
+ protected $defaultParams;
16
 
17
  public function __construct(){
18
+ $this->defaultController = ucwords('welcome');
19
+ $this->defaultMethod = 'index';
20
+ $this->defaultParams = [];
21
+
22
  // print_r($this->getURL());
23
  $url = $this->getURL();
24