Custom Resource Type not showing:
array(3) {
["url"]=>
string(42) "http://development/assets/"
["name"]=>
string(11) "Development"
["path"]=>
string(34) "/path/to/development/assets/"
}
$config['ResourceType'][] = Array(
'name' => $_SESSION['name'],
'url' => $_SESSION['url'],
'directory' => $_SESSION['path'],
'maxSize' => 0,
'allowedExtensions' => '', // Snipped for brevity
'deniedExtensions' => ''
);
include_once('/path/to/ckfinder/ckfinder.php');
$finder = new CKFinder();
$finder->SelectFunction = 'ShowFileInfo';
$finder->Width = 864;
$finder->RememberLastFolder = false;
$finder->Create();
Re: Custom Resource Type not showing:
is your session accessible in CKFinder's config.php file ? Are you sure that in config.php file you have recover session ?
Please check if you use
on top of config.php file.
It looks that your session is lost when you try use CKFinder.
Re: Custom Resource Type not showing:
The weird thing is that it's being executed within the scope of index.php - which my session has setup. (In my framework, all requests are routed to index.php, which then processes which module should be loaded)
Very strange. Oh well, it did the trick. Thanks for your help!