Thinkphp5.0.24新建admin/controller/User.php后可以訪問這個控制器可以訪問localhost/User/index
2019-05-01
use think\Config;為什么不能用,
the import think\Config cannnot be resolved
類在think的libary下面能夠找到。
helper.php中也有,
但是這句就是報錯,
版本是5.0.24
think輸入提示中只有composer,任意其他類都有錯。
the import think\Config cannnot be resolved
類在think的libary下面能夠找到。
helper.php中也有,
但是這句就是報錯,
版本是5.0.24
think輸入提示中只有composer,任意其他類都有錯。
2019-04-24
最新回答 / PcWqj
array_merge() : 把兩個數(shù)組合并為一個數(shù)組,注意:如果兩個或更多個數(shù)組元素有相同的鍵名,則最后的元素會覆蓋其他元素
<?php $a1=array("a"=>"red","b"=>"green"); $a2=array("c"=>"blue","b"=>"yellow"); print_r(array_merge($a1,$a2)); ?><...code...>
2019-04-24
'PHP_DATABASE' =>
array (size=3)
'hostname' => string 'localhost' (length=9)
'username' => string 'root' (length=4)
'password' => string 'root' (length=4)
我輸出這樣正常么
array (size=3)
'hostname' => string 'localhost' (length=9)
'username' => string 'root' (length=4)
'password' => string 'root' (length=4)
我輸出這樣正常么
2019-04-23