You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,19 @@ Let's get started:
7
7
- CRUD functions
8
8
- Auto load Model classes in Controllers
9
9
- 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
11
11
- All controllers in /app/controllers folder
12
12
- All models in /app/models folder
13
13
14
14
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)
15
15
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
+
16
23
**CRUD**
17
24
18
25
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
0 commit comments