cakephp/cakephp — pull request #1304 by jrbasso (2013-05-27 22:37:12+00:00)
Title: Allowing the pathPrefix to be configured on settings

This change will allow the prefix be configured in controller or
other helper/plugin. It helps the user to easily set CDN servers
or just a different host to avoid the cookies be set on the request

For example, if the user wants to use AWS CloudFront, CloudFlare, Rackspace Cloud Files, or any other CDN provider it can easily be configured on the helper.

Another usage is to setup a different hostname to avoid cookie and possible use a different webserver. Ie, can setup the configs to use '//static.cakephp.org/' to avoid session cookie.

In case the user wants use either CDN and no-CDN links it is possible defining 2 helpers on the controller, ie:

```php
public $helpers = array(
'Html',
'HtmlCdn' => array(
'defaultCssPathPrefix' => '//my.cdn.com/',
// ...
)
);
```

In the view:
```php
echo $this->Html->css('layout'); // Will refer to /css/layout.css
echo $this->HtmlCdn->css('layout'); // Will refer to //my.cdn.com/layout.css
```