Controller Import
| Controller | Extends | Path |
|---|---|---|
| Import | Plain_Controller | /application/controllers/import.php |
Request Types
| Type | Accessible |
|---|---|
| XMLHttpRequest | Logged in only |
| API | No |
| Web View | No |
This controller handles importing of JSON encoded data from other Nilai system.
Methods
__construct - Public
Called automatically which in turn calls the parent constructor. It also does the following:
- Redirects the user if no user id is found
- Sets default success to false
index - Public
Checks if file was uploaded, and imports it if found.