Friday, June 27, 2014

Re: CakePHP download function returns 'empty' file

Yes, still have this problem :(

My view looks like:

<?php elseif (isset($post)): ?>
    <div class="post single">
        <div class="post-description">
            <?php echo $post['Post']['description']; ?>
            <?php if (isset($post['Post']['attach'])): ?>
                <a class="free-button" href="/posts/download?file=<?php echo $post['Post']['attach']; ?>">Free download</a>
            <?php else: ?>
                <a class="free-button" href="/">< Go back</a>
            <?php endif; ?>
        </div>
    </div>
<?php endif; ?>

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: