Welcome Guest, Not a member yet? Register   Sign In
How to use suggestions and find usage with PHPStorm
#6

(This post was last modified: 01-23-2022, 09:16 AM by sprhld.)

May, It is a CI-problem... because I'm now using more and more the methods of the model directly in my controller, and I found that today:

First, I load my model in my BaseController and I have no suggestion in my "subcontroller". This is what I do while investigating an unsuspected result:

PHP Code:
        $this->data['collections']        $this->collectionSubs->where([
            'subject_id' => $cData['0']->epoche_id,
            'subject_type' => 'legal',
        ])->getCompiledSelect();

        echo print_r($this->data['collections'] ); 

And the result is nothing. I only get the "1" which always comes while doing this print_r(). Suspected was an SELECT to check the problem in my console.
Then I added one simple line:

PHP Code:
        $this->collectionSubs = new CollectionSubjectsModell();
        $this->data['collections']        $this->collectionSubs->where([
        [...] 


And there is the string a want to see.

With my first approach, I had no suggestion from PhpStorm, with a "reload" of the model, I had. Without suggestion I had no errors or response, with I had. For the moment, I don't think it's a PhpStorm-thing but a CI-thing and maybe how I use CI :-)

Maybe, I will find the problem someday. I keep you informed Smile

PS: If a developer of CI want to see my code, let's try "Code with me" feature.
Reply


Messages In This Thread
RE: How to use suggestions and find usage with PHPStorm - by sprhld - 01-23-2022, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB