Jump to content

Recommended Posts

Posted

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).

Posted

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.

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...