vscode-intelephense icon indicating copy to clipboard operation
vscode-intelephense copied to clipboard

I want to fllow custom code in php,how can i do?

Open cikiChe opened this issue 3 years ago • 3 comments

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

cikiChe avatar May 18 '22 02:05 cikiChe

Intelephense supports this feature. test

/**
 * 如果没有转到定义,则可能是你没有指定方法返回值类型,可通过注解@return指定返回值类型
 *
 * @return model
 */
static function new()

tianyiw2013 avatar May 18 '22 03:05 tianyiw2013

Intelephense supports this feature. test

/**
 * 如果没有转到定义,则可能是你没有指定方法返回值类型,可通过注解@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

cikiChe avatar May 18 '22 16:05 cikiChe

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**)

cikiChe avatar May 18 '22 16:05 cikiChe

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.

bmewburn avatar Jan 14 '23 05:01 bmewburn