How do you link css files and javascript/jquery files to a controller/view??
I am using CakePHP_1.3 and have located the following code online, but I cant seem to figure out where to put this, and secondly, where to place the css file named css_file.
<?php $this->Html->css("css_file", null, array("inline"=>false)); ?>
Any help appreciated guys…
You would put the CSS file in:
You would put the line of code in your
default.ctplayout. This is located in (1.3):Then open that up
app/views/layouts/default.ctpand look at the HTML. You’ll see where Cake is already using this command. Simply replace the filename with the file you added. Do not add the.cssto the end when you add the line of code.