Friday, December 31, 2010

Re: Downloadable files without mod_rewrite

On Fri, Dec 31, 2010 at 7:01 AM, WhyNotSmile <sharongilmore78@gmail.com> wrote:
> Debug is set to 2, but it's not throwing any error messages, or even
> the SQL output.  Is there a setting that would be supressing that
> output?

Oops! Of course, debug has to be set to 0 for MediaView's render(),
actually. What you could do is add this at the beginning of the
action:

Configure::write('debug', 2);
die(debug('found download action'));

That'll tell you if the action is at least truly being found. But, if
you're not setting debug to 0 yourself, and Media doesn't do it
anywhere, AFAIK, maybe this really is an authentic 404. That could be
a routing issue (do you have anything in you routes that could be
interfering?) or, as you suggested, the lack of mod_rewrite. In which
case, I can't think of how to resolve this.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: