natanfelles / codeigniter-phpstorm

PhpStorm Code Completion for CodeIgniter 3
https://natanfelles.github.io/blog/codeigniter-code-completion-phpstorm.html
204 stars 101 forks source link

does not see the models files #17

Closed yuceltoluyag closed 4 years ago

yuceltoluyag commented 4 years ago

Property 'product_model' not found in Product

phpstorm

natanfelles commented 4 years ago

https://github.com/natanfelles/codeigniter-phpstorm/issues/1#issuecomment-230279189

yuceltoluyag commented 4 years ago

#1 (comment) yes i saw that message but the problem persists.

Is there a place where I made a mistake, can you check it phpstorm.php

/**
 * Models
 * @property   Product_model $product_model
 * @property   Sales_model $sales_model
 */

$this->load->model("product_model","product_model");

$items = $this->product_model->getjson("product");

natanfelles commented 4 years ago

Please, certify that the properties are in the top of the class:

/**
 * Models
 * @property   Product_model $product_model
 * @property   Sales_model $sales_model
 */
class Product extend CI_Controller {
}
yuceltoluyag commented 4 years ago

solved ty