- 在netbeans專案目錄下的nbproject次目錄下,建立一個次目錄,目錄名稱可以自訂,這裡假設命名為CI_Autocomplete
netbeans專案目錄:C:\xampp\htdocs\ci
新建的次目錄為:C:\xampp\htdocs\ci\nbproject\CI_Autocomplete - 在C:\xampp\htdocs\ci\nbproject\CI_Autocomplete目錄下,建立一個命名為CI_Autocomplete_2.php的檔案。(檔案名稱可以自訂)
C:\xampp\htdocs\ci\nbproject\CI_Autocomplete\CI_Autocomplete_2.php - 將以下內容,放到CI_Autocomplete_2.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 {};
?>
- 進入netbeans,File -> Project Properties (專案名稱) -> 在Categories中點選PHP Include Path
這個範例的專案目錄是 ci ,所以畫面上看到的是 Project Properties(ci)
使用『Add Folder ...』按鈕,將C:\xampp\htdocs\ci\nbproject\CI_Autocomplete 加到專案中 - 重新啟動NetBeans。可以在netbeans中檢視codeigniter的autocomplete功能了...
站內搜尋:Yahoo搜尋的結果,如果沒有給完整的網址,請在站內再搜尋一次!
2011-11-15
讓Netbeans 7.0.x 可以提供 CodeIgniter 2.0.x 的 AutoComplete 功能
參考來源:http://codeigniter.com/forums/viewthread/187949/#888704
2011-09-25
【Netbeans 7.0.1 + Xampp 1.7.7 】設定啟用xdebug的除錯功能
Netbeans 7.0.1 增加了許多功能,讓人很想趕快試試看!
我主要的測試標的是php ide的相關功能,趁著這次的測試,順便把我目前使用的XAMPP由1.7.4版,推到1.7.7版。
在進入新功能的測試前,先把xdebug的除錯功能設定好。
從XAMPP 1.7.2版起,XAMPP已經將XDebug包含進來了,我們所要做的只是調整php.ini中的設定,相關變更說明如下:
參考資料來源:
http://netbeans.org/kb/docs/php/configure-php-environment-windows.html#installAndEnableXDebug
我主要的測試標的是php ide的相關功能,趁著這次的測試,順便把我目前使用的XAMPP由1.7.4版,推到1.7.7版。
在進入新功能的測試前,先把xdebug的除錯功能設定好。
從XAMPP 1.7.2版起,XAMPP已經將XDebug包含進來了,我們所要做的只是調整php.ini中的設定,相關變更說明如下:
- 在以下位置找到php.ini:XAMPP_HOME\php\php.ini。如果是使直接解壓縮的方式,XAMPP_HOME就是C:\XAMPP
- 搜尋zend_extension,將這一行的註解取消 zend_extension = "XAMPP_HOME\php\ext\php_xdebug.dll".
- 搜尋xdebug.remote_host,將這一行的註解取消 xdebug.remote_host=localhost. 並將 localhost 更改為 127.0.0.1
- 搜尋xdebug.remote_enable,將這一行的註解取消 xdebug.remote_enable = 0. 並將 0 更改 1.
- 搜尋xdebug.remote_handler,將這一行的註解取消 xdebug.remote_handler = "dbgp".
- 搜尋xdebug.remote_port,將這一行的註解取消 xdebug.remote_port = 9000.
- 儲存 php.ini ,儲存上列的修改內容
- 透過 XAMPP Control Panel 重新啟動 Apache server.
參考資料來源:
http://netbeans.org/kb/docs/php/configure-php-environment-windows.html#installAndEnableXDebug
訂閱:
文章 (Atom)