Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
CKEditor
  • Hi everyone!

    I want to use the package CKEditor here: https://github.com/alwarren/fuelphp.CKEditor_package

    I follow the instructions: put the js folder and the package.

    Edit the basepath in th config file: 'basepath' => Uri::base(FALSE).'fuel_blog/assets/js/ckeditor/',

    Autoload the class:

    Autoloader::add_classes(array(
    // Add classes you want to override here
    // Example: 'View' => APPPATH.'classes/view.php',
    'CKEditor' => PKGPATH.'ckeditor'
    ));

    // Register the autoloader
    Autoloader::register();

    When I want to render in a view: <p><?php echo ckeditor($post->body, $default); ?></p>

    I have an error: ErrorException [ Fatal Error ]:
    Call to undefined function ckeditor()

    What have I done wrong?

    Thanks!
  • Oups! Sorry! It is okay now. Just forgot to load in always_load in config file ;-)


Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion