Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
CKEditor
Kheenro
December 2013
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!
Kheenro
December 2013
Oups! Sorry! It is okay now. Just forgot to load in always_load in config file
;-)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Kheenro
December 2013