I'm trying to add bootstrap to a cakephp site. I added bootstrap js/css's in default.ctp and I want to use some glyphicons in buttons, but the request for the fonts (.ttf) fails (404). I have them in /app/webroot/fonts.
Apparently cake is interpreting that I want to use a controller named fonts, when I do the request from the address bar I get:
Missing Controller Error: FontsController could not be found.
Error: Create the class FontsController below in file: app\Controller\FontsController.php
How do I bypass this so the font file is downloaded?
This is what I've done: 1) Add bootstrap to default.ctp
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootbox.min.js"></script>
2) Create a button with a glyphicon in a index.ctp:
<button type="button" class="btn btn-info" aria-label="Left Align">
<span class="glyphicon glyphicon glyphicon-list-alt" aria-hidden="true"></span>Add
</button>