Hi everyone, I'm trying to use a couple of PHP classes in order to generate an ebook made of dynamic content. The format is EPUB is basically a zip archive containing xml, css, and somes directories. I've found third party code that allows me to quickly generate epub on the fly.
The main class is Epub, which uses another one called Zip. These files comes from : http://www.phpclasses.org/package/6115-PHP-Create-ebook-in-EPUB-format-for-Apple-iPad-.html http://www.phpclasses.org/package/6110-PHP-Create-archives-of-compressed-files-in-ZIP-format.html I've successfully tested the example out of my cakephp project, but when I integrate those classes and the code of the example into my cakephp project, the downloaded epub archive seems to be broken. All the job is done into a view file, which just imports the vendors and executes the example code. No errors are thrown and the file gets downloaded, but my ebook reader throws an error and the archive (we can replace the .epub extension by .zip) can't be extracted. Now, my guess would be that for some obscure reason the Zip class doesn't word correctly when integrated in cake. Maybe there is a conflict with Cake configuration when it is doing the low level job ? The code of the Zip class can be found here : http://www.phpclasses.org/browse/file/30893.html I'm aware that it's hard to help with that but it could ring a bell for someone. If you need me to post code or give more explanations, just ask. Thanks a lot, Antoine, a convicted new cakephp user Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
