相关试题
简答题 (1分)单选题 下⾯哪个是标准的PATH_INFO 模式的URL地址,且携带了2个参数:
A http:/domainName/public/index.php/index/index/hello/name/thinkphp
B http:/domainName/public/index.php/index/index/hello/name/thinkphp/id/5
C http:/domainName/public/index.php?s=/index/index/hello/name/thinkphp
D http:/domainName/public/index.php?s=/index/index/hello/name/thinkphp/id/5
简答题 (1分)单选题 localhost:8080/mvc/public/index.php 此URL是基于thinkphp框架开发多项⽬ 模式的⼀个合法URL,下⾯哪个选项是这个URL的完整形式:
A localhost:8080/mvc/public/index.php/index.html
B localhost:8080/mvc/public/index.php/index/index.html
C localhost:8080/mvc/public/index.php/index/index/index.html
D localhost:8080/mvc/public/index.php/index/index/index/index.html
简答题 (1分)单选题 在ThinkPHP6.1.X的应⽤结构中,哪⼀个⽬录是新增的⽬录?
A public
B app
C vendor
D config
简答题 (1分)单选题 定义路径字符串参数tpl_replace_string的⽂件是
A config/app.php
B config/view.php
C config/route.php
D .env
简答题 (1分)单选题 在ThinkPHP6.0.3的应⽤结构中,哪⼀个⽬录是⽤来保存资源的⽬录?
A public
B app
C vendor
D config
填空题 (2分)多选题 Db::view('map','mname,mtime') ->view('user','uname,upic','user.uname=map.muname') ->view('city','cname,cgdp','city.cname=map.mcname') ->where('cname','深圳') ->find(); 关于上⾯的查询构造器,说法正确的是:
A 访问了两张表,分别是map和user
B 访问了三张表,分别是map、user和city
C 如果查询结果不为空,则查询结果记录包含有6个字段的值
D 如果查询结果不为空,则查询结果记录包含有7个字段的值
填空题 (2分)多选题 控制器Hello.php中定义了⼀个⽅法,其脚本如下: public function show() { return view; } 下⾯说法错误的是
A 渲染的视图⽂件名是hello.html
B 渲染的视图⽂件名是show.html
C 渲染的视图⽂件保存的位置是:view/hello/
D 渲染的视图⽂件保存的位置是:view/show/
简答题 (1分)单选题 如果在⽅法渲染模板⽂件时,其默认的模板⽂件名为⽅法名的⼩写+下划线,则 auto_rule的值应该设置为:
A 1
B 2
C 3
D 4