Text instead of pictures 

Hi

I am using the code
class SignupsController extends AppController {
public $ name = 'Signups';
public $ uses = array ('Signup');
public $ helpers = array ('Html', 'Form');
public $ components = array ();
public $ useTable = false;

public function image ($ width = '120 ', $ height = '40', $ characters = '6 
') {
$ this-> autoRender = false;
         $ this-> layout = 'none';
         $ this-> autoLayout = false;
$ image = @ imagecreate ($ width, $ height) or die ('Cannot initialize new 
GD image stream');
header ("Content-Type: image / jpeg");
imagejpeg ($ image);
imagedestroy ($ image);

}
in version 1.3.15 this code to display an image, but in version 2.1.3 there 
is no picture, see the attachment 


cakephp v 2.1.3

<https://lh5.googleusercontent.com/-S0xQnDTDkKc/T8Tb-F-A_pI/AAAAAAAAAEo/7bzAox5ku3U/s1600/cakephp2.1.3.jpg>

cakephp v 1.3.15

<https://lh3.googleusercontent.com/-FpJ0gETI51M/T8Tb3AUuPII/AAAAAAAAAEg/V54Yn7RQ9K4/s1600/cakephp-1.3.15.jpg>


-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to