velaware Posted January 21, 2014 Report Posted January 21, 2014 I'm working on my backup management plugin and am running into a snag using $this->Backup->download(). It doesn't send a download and from what I can tell, no errors are generated either. Code of my controller is here: https://gist.github.com/anzenehansen/7d9b2121c1bdde36ae01 Everything renders fine, just when I hit the /backup portion the page loads but then just returns back to the index without anything (the URL even still says /backup in it). Quote
velaware Posted January 21, 2014 Author Report Posted January 21, 2014 After studying some of the other plugins more I updated the gist link posted in the original post. I'm now able to render a page and display an error since the Backup model isn't loaded. I'm not sure how to load it, however. Quote
velaware Posted January 21, 2014 Author Report Posted January 21, 2014 Sorry for the spam, but fixed the issue somehow. Either it was because I was using "Backup" instead of "backup" in my uses() array or that I didn't call $this->uses() in the backup function. But, it works now. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.