tnfh.net
ǰλãҳ >> thinkphp5 urlģʽ >>

thinkphp5 urlģʽ

·ã '/^product\/lists\/(\d+)-(\d+)-(\d+)-(\d+)$/' => 'Product/lists?id=:1&aid=:2&sid=:3&p=:4', ƴ Library\Think\Page.class.php֧· //23У޸ķηprivateΪpublic public $url=''; //70У...

1.ȣһҪȷthinkphp5 url ָ֪ķ棬֪ĴDzҪ 2.ҳת ӦÿУһЩʾϢתҳ棬ɹ߲ҳ棬ԶתһĿҳ...

Ҫ ֱӲѯݿ paginate() Ҫsevel 䵽ģ ʾҳĵط {$admin_lst->render()} admin_lstǹ 䵽ģƹ

publicĿ¼µindex.phpĿĿ¼޸indexļ· // ӦĿ¼ define('APP_PATH', __DIR__ . './application/'); // ؿļ require __DIR__ . './thinkphp/start.php'; ȥƽ̨Ķ...

ֻajaxΪʰAJAXURL󣬷صһ302ضôȥת תĿзһURL ͻյӦڿͻض // phpfunction test () { return url('index/in...

ȥõĺôǣñûʵpublicĿ¼֮Ŀ¼ Ҫdocument_rootΪpublicĿ¼ĬǸĿ¼ www htdocs

Լַƴӡ ϣҵĻش԰ﵽ㣬ʲô׷ʡ

޸ļλ,public index.phpƶĿ¼,޸index.php е·,ͲҪpublic!

ѧtp5http://kucem.com/?p=333ҵĸվԿ

ȻҲ֪Ҫfetchִֻеһ һreturn ڶͲִˡreturn IJִС

վҳ | վͼ
All rights reserved Powered by www.tnfh.net
copyright ©right 2010-2021
磬ַϵͷzhit325@qq.com