Welcome Guest, Not a member yet? Register   Sign In
ckfinder - page not found error
#1

[eluser]Unknown[/eluser]
Hi,
i'm new with codeigniter and CKEditor!

I need to use CKEditor and CKfinder in my project, the instalaltion works fine for CKEditor but when i try to upload an images i have a 404 error...

This is my folder structure:

\application
|
\controller
|
\admin.php
\....
\view
|
\admin
|
\usato
|
\carica.php
\asset
|
\ckfinder
\ckeditor

carica.php is the view in witch i need to load my editor using the controller named admin.php that extends my own controller (it just check if the user is logged in)

this is my controller:
Code:
class Admin extends MY_Controller{
function nuovoveicolo(){
  
   $url = substr(base_url(), 0, -1);
   $menu['attivo'] = 2;
   $menu['sottomenu'] = 1;
   $data['script'] = "[removed][removed]\n[removed][removed]";
  
   $this->load->library('ckeditor');
   $this->load->library('ckfinder');
  
   //Configuro il path per la cartella di ckeditor

   $this->ckeditor->basePath = base_url().'asset/ckeditor/';
   $this->ckeditor->config['toolbar'] = 'Full';
   $this->ckeditor->config['language'] = 'it';
  
   //Configuro ckfinder con ckeditor
   $this->ckfinder->SetupCKEditor($this->ckeditor,'asset/ckfinder');
  
   $this->load->view('admin/header',$data);
   $this->load->view('admin/menu',$menu);
   $this->load->view('admin/usato/carica',$dati);
   $this->load->view('admin/footer');
  
  }
}

this is my ckfinder config.php path:

Code:
$baseUrl = 'http://localhost:8888/media/';


$baseDir = 'http://localhost:8888/media/';


but as i said it return an error:



as you can see the path is completely wrong

image

Can you help me to find the problem?




Theme © iAndrew 2016 - Forum software by © MyBB