I’m using Html Helper css() method to link my stylesheets just like this: <?php echo $this->Html->css('reset.css');?> but what if my CakePHP app is accessed through a path other than http://site.domain.com, i.e. http://site.domain.com/my_app
What would be the best command to link my stylesheet?
The exact same command should work:
It automatically adds the path to the CSS folder if the given path
'reset.css'doesn’t start with a slash.By the way, if you do need to get the base url in Cake, you can use the
Routerclass: