You can use laravel url helpers.
http://laravel.com/docs/helpers#urls
Also you can user HTML::whatever() within php
tags.
<?php
echo HTML::style('assets/stylesheet/main.css');
?>
题
I'm building a login page that is just h1, two input fields, and a submit button. I really don't need a template for this. Is there a way to include the external css since I can't use {{HTML::whatever}} to include CSS?
解决方案
You can use laravel url helpers.
http://laravel.com/docs/helpers#urls
Also you can user HTML::whatever() within php
tags.
<?php
echo HTML::style('assets/stylesheet/main.css');
?>
其他提示
You can still do it in traditional HTML style inside the view, either with style tags or attaching to an external stylesheet.