Skip to content

Commit 473da96

Browse files
authored
Update README.md
1 parent c6eb31a commit 473da96

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ class ExempleController extends Controller{
109109
```
110110
### <img src="http://angular.kobject.net/git/images/ci.png" width="30"> CodeIgniter configuration
111111
####Library loading
112-
Additionally, if you want CodeIgniter to use a Composer auto-loader, just set `$config['composer_autoload']` to TRUE or a custom path in **application/config/config.php**.
112+
If you want CodeIgniter to use a Composer auto-loader, just set `$config['composer_autoload']` to `TRUE` or a custom path in **application/config/config.php**.
113113

114-
It's necessary to create a library for the JsUtils class
114+
Then, it's necessary to create a library for the JsUtils class
115115

116116
#####Library creation
117117
Create the library **XsUtils** (the name is free) in the folder **application/libraries**
@@ -124,14 +124,17 @@ class XsUtils extends Ajax\php\ci\JsUtils{
124124
}
125125
}
126126
```
127-
#####Library loading
127+
####Injection of the service
128128
Add the loading of the **XsUtils** library in the file **application/config/autoload.php**
129129

130130
The jquery member will be accessible in the controllers
131131
```php
132132
$autoload['libraries'] = array('XsUtils' => 'jquery');
133133
```
134-
####Injection of the service
134+
Once loaded you can access your class in controllers using the **$jquery** member:
135+
```php
136+
$this->jquery->some_method();
137+
```
135138

136139
### ![](http://angular.kobject.net/git/images/laravel.png) Laravel configuration
137140

0 commit comments

Comments
 (0)