Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
713uk13m authored and 713uk13m committed Oct 4, 2018
1 parent fd3b318 commit 5fbe734
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ Any loaded module controller can then be used like a library, ie:

All module controllers are accessible from the URL via module/controller/method or simply module/method if the module and controller names match. If you add the _remap() method to your controllers you can prevent unwanted access to them from the URL and redirect or flag an error as you like.

### Use:
## How to use:

I am custom library, now config same rule below

create file ***application/core/MY_Loader.php*** with content
#### Install with composer

```shell
composer require nguyenanhung/codeigniter-hmvc
```

and create file ***application/core/MY_Loader.php*** with content

```php
<?php
Expand All @@ -79,7 +85,7 @@ class MY_Loader extends BaseLoader
}
```

create file **application/core/MY_Router.php** with content
and file **application/core/MY_Router.php** with content

```php
<?php
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"require": {
"php": ">=5.5"
"php": ">=5.2.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 5fbe734

Please sign in to comment.