Idea for a PHP Class template
7 posts
• Page 1 of 1
Idea for a PHP Class template
Hey guys,
How about a PHP Class template, so when you create a new file to add to your PHP project that is going to be a PHP Class, it creates a skeleton class with the same name as the file:
Eg; create file TestClass.php and it creates a file with:
Just like adding a new C# class would...
Just a thought
Regards,
Scott
How about a PHP Class template, so when you create a new file to add to your PHP project that is going to be a PHP Class, it creates a skeleton class with the same name as the file:
Eg; create file TestClass.php and it creates a file with:
- Code: Select all
<?php
/**
* TestClass
*
* TestClass Description...
*
* @version 1.0
* @author Bob Smith (Could be set in Project Properties maybe)
*/
class TestClass
{
}
?>
Just like adding a new C# class would...
Just a thought
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Idea for a PHP Class template
I would like that too and already tried it on my own and failed at the "use filename as classname" part...
- CFI
- Posts: 66
- Joined: December 13th, 2012, 1:29 pm
Re: Idea for a PHP Class template
Great idea. We didn't notice there is missing such important template as 'PHP Class'. This will be definitely added in a future update.
Thanks!
Thanks!
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Idea for a PHP Class template
Just a preview of newly created class from template.
File name and class name matches. User name is taken from windows login (the only mechanism VS allows).
File name and class name matches. User name is taken from windows login (the only mechanism VS allows).
You do not have the required permissions to view the files attached to this post.
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
Re: Idea for a PHP Class template
Great - excatly as I wanted it to ...
- CFI
- Posts: 66
- Joined: December 13th, 2012, 1:29 pm
Re: Idea for a PHP Class template
Jakub,
Great work mate!! You guys are very responsive to feedback!! Love ya work
Regards,
Scott
Great work mate!! You guys are very responsive to feedback!! Love ya work
Regards,
Scott
- codeowl
- Posts: 51
- Joined: February 10th, 2013, 10:05 am
Re: Idea for a PHP Class template
Thank you The class template was really must-have feature...
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 50 guests