In the view I created this link:
<td>
<?php
echo anchor("./anexos/cartao-confirmacao.pdf",
"<i class='glyphicon glyphicon-arrow-down'></i>",
['class' => 'btn btn-primary btn-block', 'name' => 'baixar']);
?>
</td>
From inside this folder anexos
there is the file .pdf
, but when I click the link, it goes to a page that says the following error:
404 Page Not Found The page you requested was not found.
link that function anchor
creates: http://localhost/fideliza/anexos/cartao-confirmacao.pdf
I do not want it to go to a page and instead download the file that is in the anexos
folder