- 
                Notifications
    You must be signed in to change notification settings 
- Fork 37
CodeIgniter framework
        pavel edited this page Apr 29, 2018 
        ·
        1 revision
      
    The following integration steps are carbon copy of README.md file content published at codeigniter-richfilemanager repository, that provides example of CodeIgniter framework integrated with RichFilemanager.
- 
Step 1: We will use the composer for integration so that it will be easy to install and upgrades. 
- 
Step 2: Tell the CodeIgniter to auto load the composer installed packages in application/vendor by set composer_autoland to TRUE $config['composer_autoload'] = TRUE;in application/config/config.php
- 
Step 3: Add composer.json to codeigniter root folder if does not exit and add the following code 
    "require": {
      "servocoder/richfilemanager-php": "^1.2"
    },
    "config": {
      "vendor-dir": "application/vendor"        
    }- 
Step 4: - Run compser installin project root folder.
- Composer will install richfilemanager-php and keep the files under application/vendor folder. CodeIgniter will autoload richfildemanager package to our project.
 
- Run 
- 
Step 5: - Set the router (optional)
- Add the following $route['richfilemanager/(:any)'] = 'richfilemanager/\$1; an entry to application/config/routes.php
 
- Add the following 
- Copy the following files into your project.
- 
Server component Setup: - application/config/richfilemanagerlib.php
- application/controllers/RichFilemanager.php
- application/libraries/RichFilemanagerLib.php
- application/logs/richfilemanager-log.php
 
- 
Client component Setup: - application/views/richfilemanager.html
- config
- images
- languages
- libs
- src
- themes
- userfiles
 
 
- 
 
- Set the router (optional)
- 
Step 6: - http://<project.com>/richfilemanager
- Eg: http://codeigniter.richfilemanager/richfilemanager