Skip to main content

Menampilkan Code Snippets PHP Codeigniter di Netbeans 8

Cara menampilkan code snipets Code Igniter 2.0 di Netbeans IDE for PHP

1. Buat file baru dan letakkan di luar folder project web anda , sebagai contoh anda bisa meletakkan di folder D:\master \ci2_autocomplete.php (Nama file bisa bebas)

2. Copy paste script php berikut ke dalam file tersebut

<?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 {}; ?>


3. Buka software Netbeans PHP , masuk ke menu TOOLS -> OPTIONS ->PHP -> GLOBAL INCLUDE PATH -> Browse file ci2_autocomplete.php yang telah anda buat

4. Tutup Netbeans PHP Anda

5. Buka kembali netbeans dan selanjutnya project Code Igniter anda sudah memiliki code snippets lengkap saat anda mengetikkan kode program Anda

Terima kasih

Oleh :

Hery Purnama http://freelance-it-trainer.blogspot.com

English Translation

How to display code snipets Code Igniter 2.0 in NetBeans IDE for PHP
1. Create a new file and place it outside the folder of your web project, for example, you can put in the folder D: \ master \ ci2_autocomplete.php (you may use any name for the file)

2. Copy and paste the following php script into the file

<? Php
/ **
*property CI_DB_active_record $ db
*property CI_DB_forge $ dbForge
*property CI_Benchmark $ benchmarks
*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 $ models
*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 $ uploaded
*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
* /

CI_Controller class {};

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

CI_Model class {};

?>

3. Open the Netbeans PHP software, go to the menu TOOLS -> OPTIONS -> PHP -> GLOBAL PATH INCLUDE -> Browse > ci2_autocomplete.php , the file that you created

4. Close your PHP Netbeans software

5. Open the software and now your code snippets will show up everytime you write your CI class methode code

Thank you

By Hery Purnama http://freelance-it-trainer.blogspot.com

Comments

Popular posts from this blog

Sewa Ruang Meeting Daerah Citarum Bandung

Sewa ruang meeting kantor, training di Bandung Hubungi 0816-4038-78. Lokasi Ruang Meeting berada di Jl.Pelajar Pejuang 45 No.23B 1. Paket per Jam      - Biaya : Rp.50.000 / org / jam     - Fasilitas : Snack & Drink 2. Paket Half-Day     - Waktu : 09.00 s/d 13.00 Wib     - Biaya : Rp.120.000 / org      - Fasilitas : Makan siang 1x, Snack & Drink 3. Paket Full Day     - Waktu : 09.00 s/d 16.00 Wib     - Biaya : Rp.170.000 / org      - Fasilitas : Makan siang 1x, Coffe break 2x, Snack & Drink 4. Lain-lain     - Sewa Proyektor : Rp.150.000/day     - Extra time : Rp.100.000/Jam Syarat dan Ketentuan : 1. Min. 3org dan Max. 7org 2. Pembayaran H-3 sebelum tgl pelaksanaan 3. Melebihi jam ketentuan dikenakan biaya tambahan Sewa Ruang Meeting Daerah Citarum Bandung Hubungi 0816-4038-78 Ruang meeting murah mulai 50.000 di Buah Batu, Pasteur, Sukajadi, Lengkong, Antapani, Uj...

TRAINING PROJECT MANAGEMENT WITH PRIMAVERA P6-BANDUNG

TRAINING PROJECT MANAGEMENT WITH PRIMAVERA P6 By Purnama Academy - Training Center January 11, 2018  No comments PROJECT MANAGEMENT WITH PRIMAVERA P6 Syllabus Overview PRIMAVERA P6 adalah project management tool yang sangat populer digunakan hampir di perusahan perusahaan skala internasional dan multinasional yang sedang menjalankan project skala besar, lisensi atas PRIMAVERA P6 kini dimiliki oleh Vendor Oracle dan database yang disupport Primavera adalah SQL Server dan Oracle database. Sebagai sebuah software Project Tool skala enterprise maka Primavera memiliki 2 module di dalamnya yaitu (Methodology dan Project Management) Class Type : Training Duration : 4 Days (09.00 – 17.00) Venue  & Price : Click Here , Registration : Click Here  (Save up to 20% for Early Bird Registration !) Detail Syllabus or request for inhouse training  please contact Purnama Academy sales team info@purnamaacademy.com , Hotline (Call/SMS/Whatsapp) : 0838-0838-0001 Speaker  : Purn...