Skip to content

Commit 35b4655

Browse files
authored
Update README.md
1 parent 4dc711f commit 35b4655

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

README.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -28,60 +28,60 @@ PHP Core Framework is a simple and easy to use MVC framework for web application
2828
* Create "controllers" folder in your project folder
2929
* Create "home.php" in "controllers" folder
3030
```php
31-
<?php
32-
class HomeController extends Controller {
33-
public function Process() {
34-
require_once($this->Views->GetModule($this->Request->Controller));
35-
}
36-
}
37-
?>
31+
<?php
32+
class HomeController extends Controller {
33+
public function Process() {
34+
require_once($this->Views->GetModule($this->Request->Controller));
35+
}
36+
}
37+
?>
3838
```
3939
* Declare new controller in module by modifying file "modules/controller.php"
4040
```php
41-
<?php
42-
// PHP Core
43-
// Author: Hung Thanh Nguyen
41+
<?php
42+
// PHP Core
43+
// Author: Hung Thanh Nguyen
4444
45-
// define folder for all of controllers, the name ControllerFolder should not be changed
46-
define("ControllerFolder", "controllers/", true);
45+
// define folder for all of controllers, the name ControllerFolder should not be changed
46+
define("ControllerFolder", "controllers/", true);
4747
48-
// declare your mvc controllers here, this declaration work like routes
49-
$ControllerList = array (
50-
"" => array ("file" => "home.php", "class" => "HomeController"),
51-
"home" => array ("file" => "home.php", "class" => "HomeController")
52-
);
53-
?>
48+
// declare your mvc controllers here, this declaration work like routes
49+
$ControllerList = array (
50+
"" => array ("file" => "home.php", "class" => "HomeController"),
51+
"home" => array ("file" => "home.php", "class" => "HomeController")
52+
);
53+
?>
5454
```
5555
4. Create a view
5656
* Create "views" folder in your project folder
5757
* Create "home.php" in "views" folder
5858
```php
59-
<!DOCTYPE html>
60-
<html lang="en">
61-
<head>
62-
<meta charset="utf-8" />
63-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
64-
<title>PHP Core Quick Start</title>
65-
</head>
66-
<body>
67-
<h1>PHP Core Quick Start</h1>
68-
</body>
69-
</html>
59+
<!DOCTYPE html>
60+
<html lang="en">
61+
<head>
62+
<meta charset="utf-8" />
63+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
64+
<title>PHP Core Quick Start</title>
65+
</head>
66+
<body>
67+
<h1>PHP Core Quick Start</h1>
68+
</body>
69+
</html>
7070
```
7171
* Declare new view in module by modifying file "modules/view.php"
7272
```php
73-
<?php
74-
// PHP Core
75-
// Author: Hung Thanh Nguyen
73+
<?php
74+
// PHP Core
75+
// Author: Hung Thanh Nguyen
7676
77-
// define folder for all of views, the name ViewFolder should not be changed
78-
define("ViewFolder", "views/", true);
77+
// define folder for all of views, the name ViewFolder should not be changed
78+
define("ViewFolder", "views/", true);
7979
80-
// declare views here
81-
$ViewList = array (
82-
"" => array ("file" => "home.php"),
83-
"home" => array ("file" => "home.php")
84-
);
85-
?>
80+
// declare views here
81+
$ViewList = array (
82+
"" => array ("file" => "home.php"),
83+
"home" => array ("file" => "home.php")
84+
);
85+
?>
8686
```
8787

0 commit comments

Comments
 (0)