只要是面向?qū)ο蟮木幊陶Z(yǔ)言, 都有這個(gè)玩意, 原生的, 放心
為什么return '學(xué)習(xí)課程'.$this->request->param('lesson');返回后沒(méi)有變量顯示,只有學(xué)習(xí)課程幾個(gè)字,url已經(jīng)輸入變量了,就是不顯示
5年前 添加回復(fù) 0
沒(méi)報(bào)錯(cuò)但是取不到值,只能打印出 學(xué)習(xí)
[最新 phpcn_u47087 的回答] tp5.com/index/test1/demo3/lesson/dddd 測(cè)試的沒(méi)問(wèn)題啊,你是不是用的demo4方法?
時(shí)間:7年前
看過(guò)該課程的同學(xué)也在學(xué)
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長(zhǎng)! 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證:蘇B2-20210495
Copyright 2014-2025 http://m.miracleart.cn/ All Rights Reserved
湘ICP備2023035733號(hào)
關(guān)于我們免責(zé)申明
天蓬老師
構(gòu)造器注入請(qǐng)求對(duì)象 <?php namespace app\index\controller; class Index{ protected $request; public function __construct(\think\Request $request){ $this->request = $request; } public function
8年前 添加回復(fù) 6
哦,是說(shuō)呢,視頻中的寫法感覺(jué)構(gòu)造方法中傳入的參數(shù)沒(méi)用。