G
G
grisha22172019-11-22 21:44:02
phpstorm
grisha2217, 2019-11-22 21:44:02

How to make automatic folder creation on class creation in PhpStorm?

I have XenForo 1.x and there is an old class autoloader based on Zend Framework 1:
The class looks like this: XenForo_Model_Thread
The path to it looks like this: /XenForo/Model/Thread.php

The bottom line is that I want to create my own class, for example Test_Api_Handler_Abstract.php, is it possible to teach phpstorm to automatically create directories for this class? It takes an awful lot of time to create folders.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pavelpolitaev, 2019-11-22
@pavelpolitaev

There were such moments with kohana, I wrote a small bash script and you're done. In the console I wrote something like this: ./makeClass Test_Dir_Class

E
entermix, 2019-11-22
@entermix

Add File.php file in /Path/To/ directory:
ПКМ -> New -> File -> /Path/To/File.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question