CKfinder php object in config file gives invalid request error
<p>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 <code>config.php</code> file, ckfinder just throws up an invalid request error.</p>

<p>In my chrome console I get a <code>500</code> error for the <code>connector.php</code> only when I have the include for new object lines in my <code>config.php</code>. Does anyone know why this is happening or how I can get around it?</p>

<p>The code that I have tried is:</p>

<pre><code>require dirname($_SERVER['DOCUMENT_ROOT']).'/web/libs/tbl/clients-lib.php';
$clients = new clients();
</code></pre>

<p>These both throw up the invalid request error in the ckfinder widget. I've also tried using <code>include</code> instead of <code>require</code> 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. </p>