This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
With build 201011160001. Given this template: <?php <#assign licenseFirst = "/* "> <#assign licensePrefix = " * "> <#assign licenseLast = " */"> <#include "../Licenses/license-${project.license}.txt"> /** * Description of ${name} * * @author ${user} */ class ${name} { //put your code here } ?> When I create a new PHP class I get this content: <?php /** * Created on ${date} * * Description of ${name} * * @author ${user} */ class ${name} { //put your code here } ?>
This error doesn't always happen. I click the right mouse button on a project's source folder. There I select the 'New' option and a submenu appears. There I can see 2 'PHPClass...' options. One of them always fails to substitute template variables, the other one always work.
Can you try with a clean usedir [1]? This should work. [1] http://wiki.netbeans.org/FaqAlternateUserdir