Skip to content

Commit dab95ce

Browse files
author
rotimi
committed
Documentation in progress
1 parent ed5a228 commit dab95ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Each item in the sample config file is thoroughly described & you can specify th
4949

5050
> **Note:** running the command multiple times will not lead to previously generated classes being overwritten. If you want classes to be regenerated, you would have to manually delete them before re-running the command.
5151
52-
The classes generate will have the directory structure below for a database with an **authors** table & a **posts** table:
52+
The classes generated will have the directory structure below for a database with an **authors** table & a **posts** table:
5353

5454
```
5555
/path
@@ -74,13 +74,13 @@ Most of these classes will be empty, and are provided so you can extend their be
7474

7575
You can override the templates used by this tool and provide your own instead. This lets you customize the code generation; for example, to add your own common methods or to extend intercessory classes.
7676

77-
The templates used by this tool are located [here](templates), you can look at them to hve an idea of how to craft your custom templates. Your custom templates can be located in any directory / folder of your choosing but they must have the same names as the default template files, i.e:
77+
The templates used by this tool are located [here](templates), you can look at them to have an idea of how to craft your custom templates. Your custom templates can be located in any directory / folder of your choosing but they must have the same names as the default template files, i.e:
7878

7979
- TypesCollection.php.tpl
8080
- TypesModel.php.tpl
8181
- TypeRecord.php.tpl
8282

83-
You do not have to override all the template files, you can just override the ones you want to customize, the ones you do not ovverride will keep using the default template(s). For example, you may only want to override the Model template **TypesModel.php.tpl**, which will lead to the default Collection & Record templates to continue being used, while your custom Model template would be used for creating Model classes.
83+
You do not have to override all the template files, you can just override the ones you want to customize, the ones you do not override will keep using the default template(s). For example, you may only want to override the Model template **TypesModel.php.tpl**, which will lead to the default Collection & Record templates to continue being used for creating Collection & Record classes, while your custom Model template would be used for creating Model classes.
8484

8585
You will need to specify the directory containing your custom template files in the config file earlier described by adding an item with the key **custom_templates_directory** like so:
8686

0 commit comments

Comments
 (0)