Skip to content

Commit 1613e95

Browse files
committed
readme update
1 parent b35e9c2 commit 1613e95

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,19 @@ Let's get started:
77
- CRUD functions
88
- Auto load Model classes in Controllers
99
- To use the automatic functions you should use the filename and structure conventions
10-
- Just follow the exemple on /controller/UsuariosController.php
10+
- Just follow the exemple on /controller/UsersController.php
1111
- All controllers in /app/controllers folder
1212
- All models in /app/models folder
1313

1414
So you have two options: you can use like a framework puting your files inside the folder structure or just use like a vendor and extending the Model class (/core/model/Model.php)
1515

16+
**Convetions to use as a framework**
17+
18+
- All controllers in /app/controller path
19+
- All models in /app/model path
20+
- All views in /app/view path
21+
- Filenames and classes must has the same name
22+
1623
**CRUD**
1724

1825
First of all you have to change the config.ini file and then create a model, for example, Users model.
@@ -21,7 +28,6 @@ First of all you have to change the config.ini file and then create a model, for
2128
<?php
2229
namespace SimpleORM\app\model;
2330

24-
require_once CORE . 'model' . DS .'Model.php';
2531
use SimpleORM\core\model\Model;
2632

2733
class Users extends Model

0 commit comments

Comments
 (0)