2016-08-03 6 views
0

これはCodeIgniterで初めてのプロジェクトです。 Netbeans 8.0.1でオートコンプリートに問題があります。私はこの質問の回答を見つけましたが、私のために働いていません。CodeIgniter 3.1とNetBeans 8.0.1オートコンプリート

私はこれらのソリューションを試してみてくださいしかし、私はPATHにフォルダを追加しようとすると

How to integrate codeIgniter with netbeans fully

NetBeans 8.0 PHP CodeIgniter Framework support

Netbeans code completion for CodeIgniter

私のために働いていないことは、次のエラーがあります

共有:パスD:\ MyP rojects \ project \ autocompleteはすでにプロジェクトの一部です。

enter image description here

CI_Autocomplete.php

<?php 
    /** 
    * @property CI_DB_active_record $db 
    * @property CI_DB_forge $dbforge 
    * @property CI_Benchmark $benchmark 
    * @property CI_Calendar $calendar 
    * @property CI_Cart $cart 
    * @property CI_Config $config 
    * @property CI_Controller $controller 
    * @property CI_Email $email 
    * @property CI_Encrypt $encrypt 
    * @property CI_Exceptions $exceptions 
    * @property CI_Form_validation $form_validation 
    * @property CI_Ftp $ftp 
    * @property CI_Hooks $hooks 
    * @property CI_Image_lib $image_lib 
    * @property CI_Input $input 
    * @property CI_Language $language 
    * @property CI_Loader $load 
    * @property CI_Log $log 
    * @property CI_Model $model 
    * @property CI_Output $output 
    * @property CI_Pagination $pagination 
    * @property CI_Parser $parser 
    * @property CI_Profiler $profiler 
    * @property CI_Router $router 
    * @property CI_Session $session 
    * @property CI_Sha1 $sha1 
    * @property CI_Table $table 
    * @property CI_Trackback $trackback 
    * @property CI_Typography $typography 
    * @property CI_Unit_test $unit_test 
    * @property CI_Upload $upload 
    * @property CI_URI $uri 
    * @property CI_User_agent $user_agent 
    * @property CI_Validation $validation 
    * @property CI_Xmlrpc $xmlrpc 
    * @property CI_Xmlrpcs $xmlrpcs 
    * @property CI_Zip $zip 
    */ 

    class CI_Controller {}; 

    /** 
    * @property CI_DB_active_record $db 
    * @property CI_DB_forge $dbforge 
    * @property CI_Config $config 
    * @property CI_Loader $load 
    * @property CI_Session $session 
    */ 

    class CI_Model {}; 
?> 

答えて

2

は、次の手順に従い

  1. アプリケーションフォルダの外で​​3210を作成します。
  2. が をインストール
  3. プラグインをコードの下に追加CI_autocomplete.phpファイル
  4. インサイドCI_autocomplete.phpを作成(Can download here

    <?php 
        /** 
        * @property CI_DB_active_record $db 
        * @property CI_DB_forge $dbforge 
        * @property CI_Benchmark $benchmark 
        * @property CI_Calendar $calendar 
        * @property CI_Cart $cart 
        * @property CI_Config $config 
        * @property CI_Controller $controller 
        * @property CI_Email $email 
        * @property CI_Encrypt $encrypt 
        * @property CI_Exceptions $exceptions 
        * @property CI_Form_validation $form_validation 
        * @property CI_Ftp $ftp 
        * @property CI_Hooks $hooks 
        * @property CI_Image_lib $image_lib 
        * @property CI_Input $input 
        * @property CI_Language $language 
        * @property CI_Loader $load 
        * @property CI_Log $log 
        * @property CI_Model $model 
        * @property CI_Output $output 
        * @property CI_Pagination $pagination 
        * @property CI_Parser $parser 
        * @property CI_Profiler $profiler 
        * @property CI_Router $router 
        * @property CI_Session $session 
        * @property CI_Sha1 $sha1 
        * @property CI_Table $table 
        * @property CI_Trackback $trackback 
        * @property CI_Typography $typography 
        * @property CI_Unit_test $unit_test 
        * @property CI_Upload $upload 
        * @property CI_URI $uri 
        * @property CI_User_agent $user_agent 
        * @property CI_Validation $validation 
        * @property CI_Xmlrpc $xmlrpc 
        * @property CI_Xmlrpcs $xmlrpcs 
        * @property CI_Zip $zip 
        */ 
    
        class CI_Controller {}; 
    
        /** 
        * @property CI_DB_active_record $db 
        * @property CI_DB_forge $dbforge 
        * @property CI_Config $config 
        * @property CI_Loader $load 
        * @property CI_Session $session 
        */ 
    
        class CI_Model {}; 
    
    
    ?> 
    
  5. 後藤

    • ツール
    • インサイド
      1. アン - PHP CakePHPのフレームワーク(アンrestart IDE later上のオプション)
      2. 無効 - PHP CIフレームワークRepositary(アンrestart IDE later上のオプション)

すべて良い。あなたは01

1

はCodeIgniterの3でCI_DB_active_recordの変更に注意してください画像の下に同様の提案を見ることができる$this->load->簡単なようにコントローラタイプに行きます。

@property CI_DB_query_builder $db 

代わりの

@property CI_DB_active_record $db 
を置きます
関連する問題