# 解決VSCode的intelephense套件無法定義CI4的getGet(), getPost(), getVar()的問題 ###### tags: `CI4` 2022/09/15 ## 參考資料: https://stackoverflow.com/a/68589127 ## 問題描述 透過VSCode開發CI4的時候 在Controller中使用以下這幾個的時候, 會發生VSCode無法定義的問題 $request->getGet() $request->getPost() $request->getVar()  ## 解決方法 再次定義它~ ```php= use CodeIgniter\HTTP\IncomingRequest; class XXX extends BaseController { /** * @var IncomingRequest */ protected $request; ... } ``` 在最上方重新定義後, 錯誤就解決了~~~ 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up