Welcome Guest, Not a member yet? Register   Sign In
[split] CI3 Code Completion for library with PhpStorm
#1

(This post was last modified: 09-07-2016, 09:53 PM by ciadmin.)

Has anyone gotten code completion to work from within a library with phpStorm?
I have an autocomplete.php file in my config dir and all autocompletes work correctly except for inside a library file.

For example:

class Some_custom_lib {
   protected $CI;

   public function __construct() {
       $this->CI =& get_instance();
       $this->CI->load->model('some_custom_model');
   }

   public function createSubrofile($post_vars) {
       $create_file = $this->CI->some_custom_model->create_file($post_vars); // <-- This will not autocomplete.
       if($create_file){
           return array( 'code' => 200, 'message' => $create_file );
       } else {
           return array( 'code' => 400, 'message' => array( 'error' => 'Error creating file.' ) );
       }
   }
Reply


Messages In This Thread
[split] CI3 Code Completion for library with PhpStorm - by tduncklee - 09-07-2016, 08:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB