Use $url->assert to generate assert url.

The style and script function use  `$url = $this->url->to($url);` to generate assert url, if access the web page by index.php, will get a path like `index.php/lib/jquery-1.9.0.min.js`.

Use `$url = $this->url->asset($url);` can fix this.