Welcome Guest, Not a member yet? Register   Sign In
Models in Subfolder? Namespace?
#1
Question 

I'm facing the problem that I have a lot of models and I want to organize them into subfolder. But when I create subfolder and change the namespaces accordingly, the models are not found anymore. It does only work if they are located in the "root Models" folder..

What could be the problem here? Anybody else having this problem or a solution for this?
Reply
#2

(This post was last modified: 12-16-2019, 02:14 AM by IVIike.)

it seems to be a problem with my IDE (PHPStorm) when drag&drop-ing the models into the Subfolder. Creating the classes with "right click -> new PHP class" on the subfolder does work as expected..

I dont know exactly what the problem is/was. But after creating it that way it works.
Reply
#3

It has to do with phpStrom and refactoring making it to slow.

It has been asked to add it but I do not think that they will.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB