Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Amine authored and Mohamed Amine committed Mar 8, 2018
1 parent eab8e80 commit 6e92afc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ GET, POST, PUT, PATCH, DELETE
To use PUT, PATCH, DELETE methods your form method must be 'POST'
inside the form you must put:
```<input type='hidden' name='_method' value="PUT'>```
csrf_method('PUT') will echo this automatically.
csrf_method('PUT') will echo this automatically.

#### Basic routes examples:
```php
Expand Down Expand Up @@ -261,7 +261,7 @@ contaienr()->MyClass->someMethod();

#### IOC Service Provider:

Service provider located in ```App/Services.php```
Service provider located in ```App/Services.php```
It contains aliases and sevices that should be loaded when the application start:

```php
Expand All @@ -282,7 +282,7 @@ It contains aliases and sevices that should be loaded when the application start

#### The global $container:

the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),
the ```container()```function is global in the framework (can be used every where, it contains all the objects created by the IOC container),



Expand Down Expand Up @@ -414,11 +414,18 @@ container();
## Box (Command Line Tool):
Box is a command line tool to create Controllers, models & middlewares templates
for example:
```
// to create a controller:
php box Controller TestC
// or
// to create resourceful controller
php box Controller TestC -r
// to create a Model
php box Model TestC
// or
// to create a Middleware
php box Middleware TestC
```
Expand Down

0 comments on commit 6e92afc

Please sign in to comment.