On Oct 14, 1:20 am, MikeK <[EMAIL PROTECTED]> wrote:
> It works perfectly in a standalone php file outside cake. It also
> works in a view if it is the ONLY thing in the view and I disable the
> layout. If anything else is in the view before this bit, the browser
> emits PNG data instead of an image -- what is my problem?

OK it's definitely a misunderstanding. The controller action that
sends out the png data can ONLY send out png data if you want it to
work; do not try to embed the png file in the html (where did this
idea come from?).

On the view for /controller/whatever put this in your view file :
echo $html->img('/controller/do_imgtoken');

Job done.

hth,

AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to