How can i automatically add a namespace to new PHP Class in Netbeans 7.0

Viewed 3996

I can edit a PHP Class template through 'Tools' > 'Template Manager', and then 'PHP Class' > 'Edit'. My project's framework supports autoloading using namespaces, so i want to automatically add a namespace to the top of the file whenever i create a new 'PHP Class'. How can i do that?

And as a side, how can i find out what variables are available to me in a template?

3 Answers
Related