Welcome Guest, Not a member yet? Register   Sign In
Integrating CKFinder / Load .html with view()

(This post was last modified: 05-06-2020, 12:33 PM by elserra.)

For anyone wondering, I made some progress:

new route in Config/Routes.php:
PHP Code:
$routes->group('ckfinder',function($routes) {

New Controller in Config/Controllers:
PHP Code:
class CKFinderController extends BaseController{
    public function index($folder 'samples'$page 'full-page-open.html')
        $view = \Config\Services::renderer();
        $namespace APPPATH.'ThirdParty/ckfinder/';
        return file_get_contents($namespace.$folder."/".$page);

I am wondering if there is a better way than file_get_contents for returning a .html, .css, .js & co. files as is...

I also seem to have some trouble running JS. An intended messagebox appears, but no content...
It is easier to search the internet than posting a question. So, yes, I am asking because I did not find the answer anywhere else.

Messages In This Thread
RE: Integrating CKFinder - by jreklund - 05-05-2020, 11:19 AM
RE: Integrating CKFinder - by elserra - 05-05-2020, 11:24 AM
RE: Integrating CKFinder / Load .html with view() - by elserra - 05-06-2020, 12:30 PM
How to returrn a .html file - by elserra - 05-05-2020, 11:14 AM

Theme © iAndrew 2016 - Forum software by © MyBB