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.
目前,Im试图允许使用
<link rel="stylesheet" href="/assets/css/style.css" />
我有我的“htaccess”案卷,抓住国际投资协会,允许我用购买力平价操纵它。
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?
public function router($file)
{
//output assets file here
}