Skip to content
A list of codeigniter snippets for Sublime Text 2
Find file
Latest commit 087b5fd Nov 21, 2015 @mpmont Merge pull request #63 from Rodrigo54/master
Added a snippets for URL Helper
Failed to load latest commit information.
messages Changed README.md and added again messages\0.0.1.txt Oct 19, 2012
README.md update readme Active Record Nov 21, 2015
anchor.sublime-snippet Update anchor.sublime-snippet Nov 1, 2014
base_url.sublime-snippet rename base_url Nov 20, 2015
calendar.sublime-snippet indentation changed to tabs for universal use Oct 11, 2012
cart_add.sublime-snippet fix syntax in car_add and car_update Nov 15, 2015
cart_update.sublime-snippet fix syntax in car_add and car_update Nov 15, 2015
ci_start.sublime-snippet Update ci_start.sublime-snippet May 5, 2015
cieof.sublime-snippet Fixing messed line endings (CRLF to LF) Oct 22, 2012
ciline.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
construct.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
controller.sublime-snippet Update controller.sublime-snippet Apr 8, 2015
cookie.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
crud.sublime-snippet fix first line Nov 16, 2015
db_affected.sublime-snippet Added DB Affected Rows Oct 18, 2012
db_delete.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_free_result.sublime-snippet added query results from DB Oct 20, 2012
db_from.sublime-snippet Added the from function Jan 17, 2013
db_get.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
db_group.sublime-snippet Fixed #51 Feb 24, 2015
db_insert.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_insert_id.sublime-snippet Added last insert id function Jan 22, 2013
db_insertbatch.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_join.sublime-snippet Added the join function Jan 17, 2013
db_last.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_limit.sublime-snippet Create db_limit.sublime-snippet Jan 20, 2013
db_num_fields.sublime-snippet added query results from DB Oct 20, 2012
db_num_rows.sublime-snippet added query results from DB Oct 20, 2012
db_order.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_result.sublime-snippet added query results from DB Oct 20, 2012
db_result_array.sublime-snippet added query results from DB Oct 20, 2012
db_row.sublime-snippet added query results from DB Oct 20, 2012
db_row_array.sublime-snippet added query results from DB Oct 20, 2012
db_select.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_truncate.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_update.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
db_where.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
display_cart.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
echopre.sublime-snippet added echo with print_r Feb 24, 2015
email.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
fetch_class.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
fetch_method.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
fetch_module.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
flashdata.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
form_checkbox.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_close.sublime-snippet #24 #25 #26 #27 Oct 18, 2012
form_dropdown.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_hidden.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_input.sublime-snippet form_input - setting the attributes as optional variable Oct 17, 2012
form_label.sublime-snippet Reindented form_label Oct 11, 2012
form_open.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_password.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_submit.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_textarea.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_upload.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
form_validation.sublime-snippet Update form_validation.sublime-snippet Nov 19, 2015
form_validation_run.sublime-snippet revision from SunDi3yansyah yang ganteng Oct 26, 2015
form_validation_set_value.sublime-snippet revision from SunDi3yansyah yang ganteng Oct 25, 2015
generate_table.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
get.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
get_instance.sublime-snippet #24 #25 #26 #27 Oct 18, 2012
get_post.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
get_request_header.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
ip_address.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
is_ajax.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
is_cli.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
library.sublime-snippet Update library.sublime-snippet May 5, 2015
load_helper.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
load_library.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
load_model.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
load_module.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
load_view.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
log.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
messages.json messages / metadata / log message Mar 21, 2012
migration.sublime-snippet fix first line Nov 17, 2015
model.sublime-snippet Update model.sublime-snippet Apr 8, 2015
output_json.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
output_profiler.sublime-snippet Merge pull request #18 from 'metalmatze/master' Sep 28, 2012
package-metadata.json messages / metadata / log message Mar 21, 2012
pagination.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
post.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
redirect-http.sublime-snippet Added some snippets for URL Helper Jun 23, 2015
redirect.sublime-snippet Added some snippets for URL Helper Jun 23, 2015
request_headers.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
run_validation.sublime-snippet #24 #25 #26 #27 Oct 18, 2012
server.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
session_all_userdata.sublime-snippet Add session and change README.md Dec 27, 2012
session_sess_destroy.sublime-snippet Add session and change README.md Dec 27, 2012
session_set_userdata.sublime-snippet Update session_set_userdata.sublime-snippet Feb 25, 2013
session_unset_userdata.sublime-snippet Add session and change README.md Dec 27, 2012
session_userdata.sublime-snippet Add session and change README.md Dec 27, 2012
set_cookie.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
set_flashdata.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
set_json.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
site_url.sublime-snippet Added some snippets for URL Helper Jun 23, 2015
this.sublime-snippet Revert "improved shortcut th" Aug 5, 2014
unit_testing_run.sublime-snippet htmlentities on result & expected Mar 21, 2013
upload.sublime-snippet indentation changed to tabs for universal use Oct 10, 2012
uri_segment.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions Oct 18, 2012
user_agent.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014
valid_ip.sublime-snippet fix missing php scope to avoid conflicts Aug 1, 2014

README.md

Codeigniter Snippets

Codeigniter Downloads

This is a Sublime Text package which includes a bunch of handy snippets for doing Codeigniter framework development.

Easy installation

If you have the Package Control package installed, you can install Codeigniter framework Snippets from inside Sublime Text itself. Open the Command Palette and select "Package Control: Install Package", then search for Codeigniter framework Snippets.

Manual installation

If you haven't got Package Control installed you will need to make a clone of this repository into your packages folder (Preferences > Browse packages...), like so:

git clone https://github.com/mpmont/ci-snippets.git ci-snippets

If you find error or whatever just fork it and send me a pull request.

List of avaiable shortcuts

Class

  • _cookie
  • _get
  • _get_post
  • _post
  • _server
  • set_cookie
  • get_request_header
  • request_headers
  • ip_address
  • valid_ip
  • user_agent
  • is_ajax
  • is_cli
  • fetch_method
  • fetch_class
  • fetch_module
  • output_json
  • set_json
  • th

Helper

  • anchor
  • form_checkbox
  • form_dropdown
  • form_hidden
  • form_input
  • form_open
  • form_password
  • form_submit
  • form_textarea
  • form_upload
  • form_validation
  • form_label
  • uri_segment
  • _redirect
  • redirect
  • site
  • ci_base

Library

  • calendar
  • cart_add
  • cart_update
  • display_cart
  • email
  • flashdata
  • set_flashdata
  • generate_table
  • pagination
  • upload

Query Builder (Active Record)

  • db_affected
  • db_delete
  • db_free_result
  • db_get
  • db_group
  • db_insert
  • db_insert_id
  • db_insertbatch
  • db_select
  • db_join
  • db_last
  • db_limit
  • db_num_fields
  • db_num_rows
  • db_order
  • db_result
  • db_result_array
  • db_row
  • db_row_array
  • db_select
  • db_truncate
  • db_update
  • db_where

Session

  • session_userdata
  • session_set_userdata
  • session_all_userdata
  • session_unset_userdata
  • session_sess_destroy

Misc

  • ci_start
  • construct
  • controller
  • model
  • library
  • crud
  • load_helper
  • load_library
  • load_model
  • load_module
  • load_view
  • log
  • ciline
  • eof

List of Contributors

  • Marco Monteiro
  • Jesse Robertson
  • Amitava Das Gupta
  • rmclain
  • Tutkun
  • Frank Parent
  • Nicolas Widart
  • Ulises Vázquez Espinoza
  • pauloamc
  • shishir06
  • Deden Fathurahman
  • Shawn Crigger
  • Qcol
  • taiar
  • MetalMatze
  • Blux
  • Luis Leite
  • José Tomás Tocino
  • Marcelo Diniz
  • Ernesto Acevedo
  • Rodrigo Alves Mesquita

Bitdeli Badge

Something went wrong with that request. Please try again.