开发者

CakePHP is interrupting images

I am using fckEditor as text editor. When i upload images thru it the images were uploaded to app/webroot/fckeditor/images.

And when they're embedded it looks like

/fckfiles/SalmonSashimi.jpg

Until now it looks right.

But the ima开发者_JS百科ge doesn't appear. So when I browse the image directly, at here

http://www.in-culture.info/fckfiles/SalmonSashimi.jpg

instead of displaying the URL, Cake interrupts the image call and trying to render it in a layout. I often face this error when I point .html file for iframe scroller and .xml file for flash embedding. This is really embarrassing

You can see the page here

http://www.in-culture.info/events/view/42

That image should appear before the text - "More" dont appear for short text.

Thanks for you help.


Try to change the path where the images are saved. Instead of

/app/webroot/fckeditor/images

try to change to

/app/webroot/img/fckeditor/

I believe that it's possible.


It's resolved now.
It was not cake's fault.
I pointed incomplete absolute path at FckEditor so it didn't upload the files well.
However the uploader mistakenly passes the "OK" so the HTML tries to display it.
So cake tries to render something, as usual, when there is no physical file.

I spent about 10 hours to resolve this.
Now I don't hate cake as I did a few hours ago. (: :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜