
My First Snippets Extension for CodeIgniter PHP Framework now available to download from Visual Studio Marketplace
“https://marketplace.visualstudio.com/items?itemName=Anish-M.ci-snippets2”
as an opensource project any one can contribute on GitHub repo
“https://github.com/anish137i/ci-snippets2” .
Change : Updated new version 1.0.1 with some Bug fixes and added table in Readme.md for reference.
Snippets Table
| Prefix | description |
|---|---|
| anchor | CI – Anchor Helper |
| ci_base | CI – URL Helper – base_url |
| calendar | CI – Calendar Helper |
| cart_update | CI – Update Cart |
| eof | CI – End of file |
| ciline | Comment Line |
| ci_start | CI – Generic Starter Class |
| construct | CI – Class Constructor |
| controller | CI – Base Controller |
| _cookie | CI – Cookie |
| crud | CI – Simple CRUD Controller |
| db_affected | CI – Active Record DB Affected Rows |
| db_delete | CI – Active Record DB Delete |
| db_free_result | CI – Active Record DB Free Result |
| db_from | CI – Active Record DB From |
| db_get | CI – Active Record DB Get |
| db_group | CI – Active Record DB Group By |
| db_insert | CI – Active Record DB Insert |
| db_insertbatch | CI – Active Record DB Insert Batch |
| db_insert_id | CI – Active Record DB Last Inserted Id |
| db_join | CI – Active Record DB Join |
| db_last | CI – Active Record DB Helper Functions |
| db_limit | CI – Active Record DB Helper Functions |
| db_num_fields | CI – Active Record DB Num Fields |
| db_num_rows | CI – Active Record DB Num Rows |
| db_order | CI – Active Record DB Order By |
| db_result | CI – Active Record DB Result |
| db_result_array | CI – Active Record DB Result Array |
| db_row | CI – Active Record DB Row |
| db_row_array | CI – Active Record DB Row Array |
| db_select | CI – Active Record DB Select |
| db_truncate | CI – Active Record Truncate Table |
| db_update | CI – Active Record DB Update |
| db_where | CI – Active Record DB Where |
| display_cart | CI – Simple Cart Template |
| echopre | Pre tag in echo |
| CI – Email Boilerplate | |
| fetch_class | CI – Fetch Class |
| fetch_method | CI – Fetch Method |
| fetch_module | CI – Fetch Module |
| flashdata | CI – Flashdata |
| form_checkbox | CI – Form Helper – Checkbox |
| form_close | CI – Form Helper – Close |
| form_dropdown | CI – Form Helper – Dropdown |
| form_hidden | CI – Form Helper – Hidden Field |
| form_input | CI – Form Helper – Input Field |
| form_label | CI – Form Helper – Label |
| form_open | CI – Form Open |
| form_password | CI – Form Helper – Password Field |
| form_submit | CI – Form Helper – Submit |
| form_textarea | CI – Form Helper – Text Area |
| form_upload | CI – Form Helper – Upload Field |
| form_validation | CI – Form Validation Rule |
| form_validation_run | CI – Form Validation Run |
| form_validation_sv | CI – Form Validation Set Value |
| generate_table | CI – Generate Table |
| _get | CI – $_GET |
| get_instance | CI – Assign the CodeIgniter object to a variable |
| _get_post | CI – $_GET $_POST |
| get_request_header | CI – Get request header |
| ip_address | CI – Get ip address |
| is_ajax | CI – Is ajax request |
| is_cli | CI – Is CLI request |
| library | CI – New Library |
| load_helper | CI – Load Helper File |
| load_library | CI – Load Library |
| load_model | CI – Load Model |
| load_module | HMVC CI – Load Module Controller |
| load_view | CI – Load View |
| log | CI – Log Message |
| migration | CI – Base Migration |
| model | CI – Base Model |
| output_json | CI – output Json |
| output_profiler | CI – Enable Profiler |
| pagination | CI – Pagination Boilerplate |
| _post | CI – $_POST |
| _redirect | CI – URL Helper – redirect with response code |
| redirect | CI – URL Helper – redirect |
| request_headers | CI – Request Headers |
| run_validation | CI – Run form validation |
| _server | CI – $_SERVER |
| session_all_userdata | CI – Session – Retrieving All Session Data |
| session_sess_destroy | CI – Session – Destroying a Session |
| session_set_userdata | CI – Session – Adding Custom Session Data |
| session_unset_userdata | CI – Session – Removing Session Data |
| session_userdata | CI – Session – Retrieving Session Data |
| set_cookie | CI – Set Cookie |
| set_flashdata | CI – Set flashdata |
| set_json | CI – Set content type to json |
| site | CI – URL Helper – site_url |
| th | PHP – $this or other object use |
| unit_run | CI – Unit Run |
| upload | CI – Upload Boilerplate |
| uri_segment | CI – URI Segment |
| user_agent | CI – Get user agent |
| valid_ip | CI – Valid IP |
