vscode-intelephense
vscode-intelephense copied to clipboard
I want to fllow custom code in php,how can i do?
hello,
my english is poor well,so if you dont understand my problem . pls reply
I have code like that:
model::new('xxxx')->add();
this code point to xxx.php . so i need to jump to this file when i click add() function
ths . good luck
Intelephense supports this feature.
/**
* 如果没有转到定义,则可能是你没有指定方法返回值类型,可通过注解@return指定返回值类型
*
* @return model
*/
static function new()
Intelephense supports this feature.
/** * 如果没有转到定义,则可能是你没有指定方法返回值类型,可通过注解@return指定返回值类型 * * @return model */ static function new()
LOL. I try it and it works . ths but my purpose like that: I have three file in different dir.
--- controller (dir)
------acontroller.php (Model::new(a)->add())
--- Db (dir)
------ Db.php (new() function is here)
------adb.php (add() function is here. maybe in another dir)
I want to jump adb.php when i click add() function
ths. good luck for you
By the way
--- controller (dir)
------acontroller.php (Model::new('adb')->add()。 i need click add() and jump to adb.php)
--- Db (dir)
------ Db.php (new() function is here)
------adb.php (add() function is here. maybe in another dir)
------bdb.php (**there also have add() function**)
------edb.php (**there also have add() function**)
This should be working if all files are present in the open workspace folder. Please open a new issue with a reproducible test case if it is still a problem.