Php 扩展名为 .tpl 的文件在 Netbeans 中不起作用
Php File with .tpl Extension not Working in Netbeans
我在做一个opencart的项目。在 opencart 中,视图文件的扩展名为 .tpl。 Opencart 是一个 PHP CMS。但是在我的 netbeans 项目中,编辑器无法识别 .tpl 文件。连标签都显示不正确。
我通过转到 NetBeans > 选项 > 杂项 > 文件来实现。在文件扩展名 select tpl 行中。选择关联文件类型 (MIME) 作为 text/x-php5,然后单击应用。然后重新启动 Netbeans
转到
Netbeans
tools
options
Miscellaneous
Files
现在找到行 file extension
select tpl
。然后最重要的是选择 Associated File Type (MIME)
作为 text/x-php5
。保存后,重启netbeans。
-You can do this if you follow these steps:
1.Open Tools and Select Options.<br>
2.Select Miscellaneous tab.<br>
3.Select Files sub-tab thing.<br>
4.Click on New file extension and enter tpl.<br>
5.Select the mime type.<br>
6.Click OK. Done!<br>
7.(Restart of Netbeans may be required to see the actual changes)
我在做一个opencart的项目。在 opencart 中,视图文件的扩展名为 .tpl。 Opencart 是一个 PHP CMS。但是在我的 netbeans 项目中,编辑器无法识别 .tpl 文件。连标签都显示不正确。
我通过转到 NetBeans > 选项 > 杂项 > 文件来实现。在文件扩展名 select tpl 行中。选择关联文件类型 (MIME) 作为 text/x-php5,然后单击应用。然后重新启动 Netbeans
转到
Netbeans
tools
options
Miscellaneous
Files
现在找到行 file extension
select tpl
。然后最重要的是选择 Associated File Type (MIME)
作为 text/x-php5
。保存后,重启netbeans。
-You can do this if you follow these steps:
1.Open Tools and Select Options.<br>
2.Select Miscellaneous tab.<br>
3.Select Files sub-tab thing.<br>
4.Click on New file extension and enter tpl.<br>
5.Select the mime type.<br>
6.Click OK. Done!<br>
7.(Restart of Netbeans may be required to see the actual changes)