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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...