Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public function downloadPDF()
  2. {
  3. $url=Input::get('url');
  4. $url=explode('/', $url);
  5. $cv_id = substr($url[4], 0, -13);
  6. $name=Auth::user()->username;
  7. $cv_info=CV::where('id','=',$cv_id)->first();
  8. $html = view('ui.userinfo.viewCV',$cv_info)->render();
  9.  
  10. return $this->pdf
  11. ->load($html)
  12. ->show();
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement