i appreciate it if you can help me
i want to implement ckeditor and ckfinder in my cakephp 3 app.
so i used the following code in my view
<?php echo $this->Form->control('body',['type' => 'textarea','id'=>'myeditor','name' => 'myeditor','class'=>'myeditor', 'escape' => 'true', 'rows' => '8', 'cols' => '31','label'=>'متن:','Enter'=>'true']);?>
and also the following script is in my view
var editor = CKEDITOR.replace( ‘myeditor’,
ckfinder and ckeditor are in adjacent folders in webroot/js.
the editor comes in the view but when i click on image to upload an image ckfinder comes up which has some fields URL and other fields and a button named “Browse server” right beside the “URL filed” and also an “upload” tab. the problem is when i click on “upload” or “Browse server” it does not work and a page comes up that displays nothing but a button named OK.
maybe i worked wrong to set ‘baseUrl’ and ‘baseDir’ in config.php of ckfinder.
right now it’s like the follow but i tried everything i thought and it did not worked.
‘baseUrl’ => ‘http://www.mysite.ir/js/ckfinder/’,
‘baseDir’ => ’ ',
i set the following session and authentication like this right next to <?php in config.php
if( isset($_SESSION[‘Auth’][‘User’]) )
and also i set .htaccess for that
RewriteRule ^ckfinder/ - [L]
i really appreciate your help