-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Eko Junaidi Salam edited this page Jul 9, 2015
·
1 revision
- Create folder in your htdocs ckfinderku and Checkout from trunk folder in https://github.com/ekojs/Database_Plugin4CKFinder/trunk
- Create database using *.sql from assets/slideshow.sql, assets/userfiles.sql, assets/users.sql.
- Change the configuration in application/config/database.php file using information from your new database created earlier.
- Change line 21 in application/controllers/welcome.php file
$this->ckfinder->BasePath = '/ckfinderku/assets/ckfinder/'; //change this path based on your need, this line means : http://localhost/ckfinderku/assets/ckfinder
- Change line number 75 and 346-355 in assets/ckfinder/config.php file.
$baseUrl = 'http://'.$_SERVER['SERVER_NAME'].'/ckfinderku/assets/ckfinder/userfiles/'; //change this line 75 and 346 based on your configuration above
$config['Plugin_ejsplug'] = array(
"dbhost" => "",
"dbuser" => "",
"dbpass" => "",
"dbase" => "",
"opt" => array(
"main_table" => "slideshow",
"other_table" => "userfiles"
)
);
- Run this demo http://localhost/ckfinderku and click "Here"
- For the first time you run the ckfinder it will create a folder in userfiles/
assets/ckfinder/userfiles/_thumbs
assets/ckfinder/userfiles/files
assets/ckfinder/userfiles/flash
assets/ckfinder/userfiles/images
- Create folder "slideshow" in assets/ckfinder/userfiles/images
- Refresh the ckfinder page until you see slideshow child folder in images folder
- Test upload, rename and delete while you check in slideshow table in database.