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”));
$this->db->insert('users', $data); # where $data is an array $insert_id = $this->db->insert_id(); # insert_id()... read more
Login to Admin panel Click on People Click on Roles and create Custom Role... read more
One of the reasons why smart phones have become so popular is... read more
$this->session->mark_as_flash('item'); # Version 3.x only $this->session->mark_as_flash(array('item', 'item2')); # Version 3.x only Array to... read more
This can be achieved using a single query with join. We can... read more
After a lots of headache, I find the solutions. I am using... read more
The regex caused the error during validation check on Alphaspace Rules regular... read more
Screen Got stuck eventually with this error during CodeIgniter development. Fatal error: Class... read more
It requires two main steps: Add Virtual Host Entries to vhosts Configuration file. Assign... read more
Fork a Repo. A fork is a copy of a repository. Forking... read more
Leave a Reply