I made a bare minimum set up which fails to draw any image.  The view
is only:

<?php echo $this->Html->image($this->Html-
>url(array('controller'=>'users', 'action'=>'captcha'),
        true), array('style'=>'','vspace'=>2)); ?>

and the controller function is:
function captcha()  {
        $this->autoRender = false;
        header('Content-Type: image/png');
        $x1 = 199;
        $y1 = 63;
        $im = imagecreatetruecolor($x1 + 1, $y1 + 1);
        $bkcol = imagecolorallocate($im, 128, 128, 128);
        imagefilledrectangle($im, 0, 0, $x1, $y1, $bkcol);
        imagepng($im);
        imagedestroy($im);
}

... that is it.  As before this fails with no error message, the image
is just a small red cross instead of a grey box.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to