load a image, css, or js file via php
<p>i am making my own framework and would like to allow easy direct access to a asset file such an image, a javascript or a css file.</p>

<p>currently I'm attempting to allow the use of</p>

<pre><code>&lt;link rel="stylesheet" href="/assets/css/style.css" /&gt;
</code></pre>

<p>I have my .htaccess file capture the URI and allow me to manipulate it with PHP.</p>

<p>My router class captures the uri and detects the actual path to the file. So my question is how do i write it up in PHP?</p>

<pre><code>public function router($file)
{
    //output assets file here
}
</code></pre>
