Do explain, I'm curious.
On Nov 27, 2007 3:34 AM, jonathan <[EMAIL PROTECTED]> wrote:
>
> Indeed the problem was globals not being seen globally. I added some
> global statements and joy is mine again.
>
> On Nov 27, 3:27 am, jonathan <[EMAIL PROTECTED]> wrote:
> > OK, now I am just talking to m
Indeed the problem was globals not being seen globally. I added some
global statements and joy is mine again.
On Nov 27, 3:27 am, jonathan <[EMAIL PROTECTED]> wrote:
> OK, now I am just talking to myself, but I have had some stellar
> insight for anyone following along. The problem is apparentl
Looks like you are messing with it now - there is an obvious print_r
and before the file data now.
Are you calling exit() after the file data is output, or otherwise
ensuring that cake doesn't attempt to render a view?
On Nov 27, 7:09 pm, jonathan <[EMAIL PROTECTED]> wrote:
> Just so you know
OK, now I am just talking to myself, but I have had some stellar
insight for anyone following along. The problem is apparently not in
the display of the image, but in the generation of the image. I
remember having some issues with global variables in the framework
from time to time, and I think
Just so you know what the code looks like (nothing fancy at all), here
is the action within my Orders controller. By commenting out the
setFilePath it should output to the browser:
function storeBarcode($oid) {
$this->layout=NULL;
$this->autoRender = false;
$bc = new DataM
Hey Wayne,
The image is a PNG so I am using the content-type MIME for PNG.
I do not know how any spaces could work their way in there. The same
code works outside Cake.
It's called rDataMatrix and relies on the bundled GD Library.
Again, outside Cake, nothing but joy. Inside Cake, one of my
Did you set the headers correctly (content type etc)?
Do you have a space (or more than one) appearing at the beginning of
your image file which would cause these problems?
What PHP barcode generation library are you using?
Wayne
On 11/27/07, jonathan <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>