I need to access a function from a php class in the the ckfinder config file but when I try to include the file or set up a new object of that class in the config.php
file, ckfinder just throws up an invalid request error.
In my chrome console I get a 500
error for the connector.php
only when I have the include for new object lines in my config.php
. Does anyone know why this is happening or how I can get around it?
The code that I have tried is:
require dirname($_SERVER['DOCUMENT_ROOT']).'/web/libs/tbl/clients-lib.php';
$clients = new clients();
These both throw up the invalid request error in the ckfinder widget. I've also tried using include
instead of require
but this made no difference. I noticed when the file path is wrong it doesn't give me an error but when it is correct it does. As for creating a new object I have try lots of different class but all give me the same error.