Skip to content

Commit 67ca272

Browse files
authored
Update console.md
1 parent 42c3c5e commit 67ca272

1 file changed

Lines changed: 13 additions & 18 deletions

File tree

docs/start/console.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,29 +68,29 @@ RawPHP follows standard naming conventions, that is, there are certain names you
6868

6969
### Database naming convention
7070
Your database tables must all be in smallcaps andin plural, multiple words should be joined with an underscore. The below are valid names:
71-
** `customer_accounts`
72-
** `posts`
73-
** `books`
71+
* `customer_accounts`
72+
* `posts`
73+
* `books`
7474

7575
### Model naming convention
7676
Your models must be singular and Capitalized, multiple words are camel cased. Below are examples of corresponding models for the above tables:
77-
** `CustomerAccount`
78-
** `Post`
79-
** `Book`
77+
* `CustomerAccount`
78+
* `Post`
79+
* `Book`
8080

8181
### Controller naming convention
8282
Your controller names must be capitalized, plural and must end with the `Controller` suffix. Multiple words are camel cased. Below are examples of corresponding controllers for the above models
83-
** `CustomerAccountsController`
84-
** `PostsController`
85-
** `BooksController`
83+
* `CustomerAccountsController`
84+
* `PostsController`
85+
* `BooksController`
8686

8787
### Views naming convention
8888
Your view folder should bear the same name as your database table and must be named in the same way - small caps and plural.
8989
The view files should bear the same name as their corresponding controller methods. Below are examples
90-
** `/customer_accounts` folder may contain the following files
91-
** ` add.twig`
92-
** `create.twig`
93-
** `checkIfCustomerAccountIsActive.twig`
90+
* `/customer_accounts` folder may contain the following files
91+
* ` add.twig`
92+
* `create.twig`
93+
* `checkIfCustomerAccountIsActive.twig`
9494

9595

9696
## Creating Models
@@ -133,8 +133,3 @@ php raw make:model posts
133133
```
134134
A model file will be created in `resources/views/posts/` . Four view files will be created in there `add.twig, edit.twig, view.twig and index.twig`
135135
You then have to open the files in your editor and adjust it to suit your need.
136-
137-
138-
139-
140-

0 commit comments

Comments
 (0)