开发者

Trying to locate Codeigniter function executed in the view file

开发者 https://www.devze.com 2023-04-13 04:12 出处:网络
I\'m trying to find where below query is coming from. Below is executed in view file which is resource_update开发者_开发知识库.php but I cannot find add_resource function from resource controller...

I'm trying to find where below query is coming from. Below is executed in view file which is resource_update开发者_开发知识库.php but I cannot find add_resource function from resource controller...

Is there a reason why?

$this->resources->add_resource($desc_arr, $desc_limit, $new_clients);


Check if "resources" is actually a library or a model. I don't think we ever need to call another controller from a view (which is again loaded by a controller).

i.e., How is resources loaded?

$this->load->library('resources');

or

$this->load->model('resources');

Other than lack of sleep, I see no reason why you should not find the function that way. :)

If its really bothering you - try Changing your IDE to PhpDesigner, Netbeans etc. They have a cool way of finding the function definition and code hinting.

Cheers!

0

精彩评论

暂无评论...
验证码 换一张
取 消