Sending File for Download to browser in CakePHP
Below code can be helpful
$this->response->file($this->DIR.$file, array(‘download’ => true, ‘name’ => “$file”));
Below code can be helpful
$this->response->file($this->DIR.$file, array(‘download’ => true, ‘name’ => “$file”));
"Add this in your component public function initialize(Controller $controller) { $this->controller = $controller;... read more
After a lots of headache, I find the solutions. I am using... read more
"if ( $this->input->is_ajax_request() ) { // your code here... }" read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
The character set named utf8 uses a maximum of three bytes per... read more
Have you ever read emailed somebody and spent time wondering whether they... read more
Simple Syntax: chmod 744 yourfile.ext Below Codes can be helpful to set permissions 400... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
Leave a Reply
You must be logged in to post a comment.