Possible to treat string parameter of a function as a file path?
Hi there,
when I create a php function like:
/**
* @param string $pathToFile the path to the file
*
*/
function loadTemplate(pathToFile) {
.
.
.
. do something....
.
.
}
When I call this function, like: $this->loadTemplate('/site/myTemplateFile.php');
..is phpStorm able to check if this file exists? Like e.g. when I use include?
Thanks a lot!
请先登录再写评论。