Netbeans code completion for CodeIgniter

后端 未结 1 1176
北海茫月
北海茫月 2020-12-13 15:03

I am using Netbeans IDE for Php development. It gives me code completion for Kohana framework. Is there any way to have code completion for CodeIgniter in Netbeans?

1条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 15:51

    Instructions:

    Create a new directory inside nbproject (I used this since it’s omitted when pushing to prod) with your name of choice, I used CI_Autocomplete.

    Create a new file with your name of choice, I used CI_Autocomplete_2.0.php, and place it inside the newly created folder, nbproject\CI_Autocomplete.

    Paste the below code inside the new file, CI_Autocomplete_2.0.php.

    
    

    Now go to (this is for OSX so not sure if it’s the same for Windows) File > Project Properties (projectname) > PHP Include Path and include the new folder you created above, nbproject\CI_Autocomplete.

    Restart your project and autocomplete will work.

    0 讨论(0)
提交回复
热议问题