Skip to content

Commit 8c8567c

Browse files
authored
Update README.md
1 parent a4d9b39 commit 8c8567c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
2727
}
2828
}
2929
```
30-
4. Create startup file [project folder]/src/server/Startup.php
30+
4. Modify startup file [project folder]/src/server/Startup.php
3131
```php
3232
<?php
3333
namespace phpcore;
@@ -48,7 +48,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
4848
public function __construct() {
4949
try {
5050
parent::__construct();
51-
$this->Route->SetWebRoutes($this->WebRoutes);
51+
$this->Route->setWebRoutes($this->WebRoutes);
5252
}
5353
catch (Exception $e) {
5454
throw $e;
@@ -67,7 +67,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
6767
?>
6868
6969
```
70-
5. Create controllers folder [project folder]/src/server/controllers and then create a controller in controllers [project folder]/src/server/controllers/HomeController.php
70+
5. Create a HomeController [project folder]/src/server/controllers/HomeController.php
7171
```php
7272
<?php
7373
namespace phpcore\controllers;
@@ -86,7 +86,7 @@ phpcore framework is a simple and easy to use MVC framework for web application
8686
}
8787
?>
8888
```
89-
6. Create views folder [project folder]/src/server/views and create a view for HomeController [project folder]/src/server/views/Home.php
89+
6. Create a view for HomeController [project folder]/src/server/views/Home.php
9090
```html
9191
<!DOCTYPE html>
9292
<html lang="en">
@@ -103,8 +103,8 @@ phpcore framework is a simple and easy to use MVC framework for web application
103103
104104
## Web API
105105
Steps to create a Web API with phpcore framework.
106-
1. Follow steps 1 to 3 from quick start to setup new project.
107-
2. Create startup file [project folder]/src/server/Startup.php
106+
1. Follow steps 1 to 3 from Quick start to setup new project.
107+
2. Modify startup file [project folder]/src/server/Startup.php
108108
```php
109109
<?php
110110
namespace phpcore;
@@ -124,7 +124,7 @@ Steps to create a Web API with phpcore framework.
124124
public function __construct() {
125125
try {
126126
parent::__construct();
127-
$this->Route->SetApiRoutes($this->ApiRoutes);
127+
$this->Route->setApiRoutes($this->ApiRoutes);
128128
}
129129
catch (Exception $e) {
130130
throw $e;
@@ -146,7 +146,7 @@ Steps to create a Web API with phpcore framework.
146146
}
147147
?>
148148
```
149-
3. Create API controllers folder [project folder]/src/server/controllers/api and then create a API controller [project folder]/src/server/controllers/api/GetInfoController.php
149+
3. Create an API controller [project folder]/src/server/controllers/api/GetInfoController.php
150150
```php
151151
<?php
152152
namespace phpcore\controllers\api;
@@ -215,13 +215,13 @@ Steps to create a Web API with phpcore framework.
215215
216216
## Use Doctrine 2 to work with database
217217
This example will create a Web API that returns data from SQLite with Doctrine, make sure that SQLite PDO has been enabled in PHP configuration.
218-
1. Follow steps 1 to 3 from quick start to setup new project.
218+
1. Follow steps 1 to 3 from Quick start to setup new project.
219219
2. Modify file [project folder]/composer.json
220220
```json
221221
{
222222
"name": "thnguyendev/phpcore",
223223
"description": "The phpcore framework.",
224-
"version": "2.0.0",
224+
"version": "2.0.1",
225225
"keywords": ["framework", "phpcore"],
226226
"license": "MIT",
227227
"type": "project",
@@ -357,7 +357,7 @@ This example will create a Web API that returns data from SQLite with Doctrine,
357357
```
358358
> vendor/bin/doctrine orm:schema-tool:create
359359
```
360-
6. Create Startup file [project folder]/src/server/Startup.php
360+
6. Modify startup file [project folder]/src/server/Startup.php
361361
```php
362362
<?php
363363
namespace phpcore;
@@ -399,7 +399,7 @@ This example will create a Web API that returns data from SQLite with Doctrine,
399399
}
400400
?>
401401
```
402-
7. Create API controllers folder [project folder]/src/server/controllers/api and then create a API controller [project folder]/src/server/controllers/api/GetInfoController.php
402+
7. Create a API controller [project folder]/src/server/controllers/api/GetInfoController.php
403403
```php
404404
<?php
405405
namespace phpcore\controllers\api;

0 commit comments

Comments
 (0)