laruence / yaf

Fast php framework written in c, built in php extension
http://pecl.php.net/package/yaf
Other
4.52k stars 1.37k forks source link

这样$.ajax(url: "../../library/Start.php)相对路径有用吗? #249

Open shaohao2014 opened 8 years ago

shaohao2014 commented 8 years ago

模板页里的前端代码里要调用library里的类,这样设置路径对吗? $.ajax(url: "../../library/Start.php)

shaohao2014 commented 8 years ago

可能有点文不对题,我还不太清楚yaf的路由特性

zxcvdavid commented 8 years ago

去yaf群里提 issue真的不是这样用的兄弟..

shaohao2014 commented 8 years ago

谢谢兄弟

laowuart commented 8 years ago

提交到服务器的相对路径?兄弟你一定是再逗我

letwang commented 5 years ago

最好是绝对路径 麻烦少