WordPress options.php cannot resolve file
The options page is useful for settings in a WordPress plugin. However, phpstorm is stating the file cannot be resolved.
This is the simple form code used:
<form method="post" action="options.php">
I have the document root set. This is on a local environment of MAMP.
Are there any other settings to check?
请先登录再写评论。
Hi there,
Please describe how did you do that.
Please show a screenshot where path to current file as well as this "option.php" file is clearly shown.
Thing is: this inspection checks for HTML resources relative to Resource Roots (or project root if none provided) in addition to path relative to the current file. Therefore: in order to not to show the error this "option.php" should be either placed in folder marked as Resource Root .. or be in the same folder as where this file with this form is located.
P.S.
I'm nto a WordPress guy and do not know where "options.php" file is located