Search code examples
phpsymfonyckeditorphp-ziparchive

Symfony 3: I can't install ckeditor


When I follow this documentation to "Integrating IvoryCKEditorBundle to Create a WYSIWYG Editor" in my app, I get the following error:

[Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "ZipArchive" from the global namespace.  Did you forget a "use" statement?

This happens at the step 4. I really have no idea about what could triggers this error. Due to my OS configuration? PHP Version? Symfony config? Etc?


Solution

  • please note that you can also change the php version, for 5.6 use sudo apt-get install php5.6-zip