Skip to content

Commit c6eb31a

Browse files
authored
codeIgniter doc
1 parent ada6c9d commit c6eb31a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,32 @@ class ExempleController extends Controller{
107107
}
108108
}
109109
```
110+
### <img src="http://angular.kobject.net/git/images/ci.png" width="30"> CodeIgniter configuration
111+
####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**.
113+
114+
It's necessary to create a library for the JsUtils class
115+
116+
#####Library creation
117+
Create the library **XsUtils** (the name is free) in the folder **application/libraries**
118+
119+
```php
120+
use Ajax\php\ci\JsUtils;
121+
class XsUtils extends Ajax\php\ci\JsUtils{
122+
public function __construct(){
123+
parent::__construct(["semantic"=>true,"debug"=>false]);
124+
}
125+
}
126+
```
127+
#####Library loading
128+
Add the loading of the **XsUtils** library in the file **application/config/autoload.php**
129+
130+
The jquery member will be accessible in the controllers
131+
```php
132+
$autoload['libraries'] = array('XsUtils' => 'jquery');
133+
```
134+
####Injection of the service
135+
110136
### ![](http://angular.kobject.net/git/images/laravel.png) Laravel configuration
111137

112138
####Library loading

0 commit comments

Comments
 (0)