I suggest you turn on debug and add some debug statements in between
your code, so you can see what the content of each variable is at
specific places. Debug is turned on in your core.php file in the
config directory.

Use debug statements:
debug($basename);
debug($file_extension);
and maybe some more, so you can check the content.
Enjoy,
   John

On Feb 4, 9:06 am, sebb86 <[email protected]> wrote:
> John
>
> Hello,
> thanks for your answer! :)
> I've added your code.
> Well, I found out, that my old code (same result with your code) also
> works, but only with 3 of my 4 test-data-rows.
> It works for '13.pdf', '288.pdf' and '3.pdf'. It fails for
> '19.pdf' (result on click = 19.pdf.pdf) and i absolutely dont know
> why??!??!? That's very confusing.
> The pdf-fles are all the same, only the filename is changed.
>
> Also thanks for your addition to use "strtolower" with the file
> extension.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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