Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A list of codeigniter snippets for Sublime Text 2
branch: master

Merge pull request #52 from eduardojunio/master

CRUD now can be called without a php start tag - Thanks mate, this change makes sense..
latest commit b191905690
@mpmont authored
Failed to load latest commit information.
messages Changed README.md and added again messages\0.0.1.txt
README.md Add a Bitdeli badge to README
anchor.sublime-snippet Update anchor.sublime-snippet
calendar.sublime-snippet indentation changed to tabs for universal use
cart_add.sublime-snippet indentation changed to tabs for universal use
cart_update.sublime-snippet indentation changed to tabs for universal use
ci_start.sublime-snippet Fixing messed line endings (CRLF to LF)
cieof.sublime-snippet Fixing messed line endings (CRLF to LF)
ciline.sublime-snippet indentation changed to tabs for universal use
construct.sublime-snippet indentation changed to tabs for universal use
controller.sublime-snippet Removed empty line at the end
cookie.sublime-snippet indentation changed to tabs for universal use
crud.sublime-snippet CRUD now can be called without a php start tag
db_affected.sublime-snippet Added DB Affected Rows
db_delete.sublime-snippet indentation changed to tabs for universal use
db_free_result.sublime-snippet added query results from DB
db_from.sublime-snippet Added the from function
db_get.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
db_group.sublime-snippet Fixed #51
db_insert.sublime-snippet indentation changed to tabs for universal use
db_insert_id.sublime-snippet Added last insert id function
db_insertbatch.sublime-snippet indentation changed to tabs for universal use
db_join.sublime-snippet Added the join function
db_last.sublime-snippet indentation changed to tabs for universal use
db_limit.sublime-snippet Create db_limit.sublime-snippet
db_num_fields.sublime-snippet added query results from DB
db_num_rows.sublime-snippet added query results from DB
db_order.sublime-snippet indentation changed to tabs for universal use
db_result.sublime-snippet added query results from DB
db_result_array.sublime-snippet added query results from DB
db_row.sublime-snippet added query results from DB
db_row_array.sublime-snippet added query results from DB
db_select.sublime-snippet indentation changed to tabs for universal use
db_truncate.sublime-snippet indentation changed to tabs for universal use
db_update.sublime-snippet indentation changed to tabs for universal use
db_where.sublime-snippet indentation changed to tabs for universal use
display_cart.sublime-snippet indentation changed to tabs for universal use
echopre.sublime-snippet added echo with print_r
email.sublime-snippet indentation changed to tabs for universal use
fetch_class.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
fetch_method.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
fetch_module.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
flashdata.sublime-snippet fix missing php scope to avoid conflicts
form_checkbox.sublime-snippet indentation changed to tabs for universal use
form_close.sublime-snippet #24 #25 #26 #27
form_dropdown.sublime-snippet indentation changed to tabs for universal use
form_hidden.sublime-snippet indentation changed to tabs for universal use
form_input.sublime-snippet form_input - setting the attributes as optional variable
form_label.sublime-snippet Reindented form_label
form_open.sublime-snippet indentation changed to tabs for universal use
form_password.sublime-snippet indentation changed to tabs for universal use
form_submit.sublime-snippet indentation changed to tabs for universal use
form_textarea.sublime-snippet indentation changed to tabs for universal use
form_upload.sublime-snippet indentation changed to tabs for universal use
form_validation.sublime-snippet indentation changed to tabs for universal use
generate_table.sublime-snippet indentation changed to tabs for universal use
get.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
get_instance.sublime-snippet #24 #25 #26 #27
get_post.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
get_request_header.sublime-snippet indentation changed to tabs for universal use
ip_address.sublime-snippet indentation changed to tabs for universal use
is_ajax.sublime-snippet indentation changed to tabs for universal use
is_cli.sublime-snippet indentation changed to tabs for universal use
library.sublime-snippet CI - New Library
load_helper.sublime-snippet indentation changed to tabs for universal use
load_library.sublime-snippet indentation changed to tabs for universal use
load_model.sublime-snippet indentation changed to tabs for universal use
load_module.sublime-snippet indentation changed to tabs for universal use
load_view.sublime-snippet indentation changed to tabs for universal use
log.sublime-snippet indentation changed to tabs for universal use
messages.json messages / metadata / log message
migration.sublime-snippet indentation changed to tabs for universal use
model.sublime-snippet Removed empty line at the end
output_json.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
output_profiler.sublime-snippet Merge pull request #18 from 'metalmatze/master'
package-metadata.json messages / metadata / log message
pagination.sublime-snippet indentation changed to tabs for universal use
post.sublime-snippet fix missing php scope to avoid conflicts
request_headers.sublime-snippet fix missing php scope to avoid conflicts
run_validation.sublime-snippet #24 #25 #26 #27
server.sublime-snippet fix missing php scope to avoid conflicts
session_all_userdata.sublime-snippet Add session and change README.md
session_sess_destroy.sublime-snippet Add session and change README.md
session_set_userdata.sublime-snippet Update session_set_userdata.sublime-snippet
session_unset_userdata.sublime-snippet Add session and change README.md
session_userdata.sublime-snippet Add session and change README.md
set_cookie.sublime-snippet fix missing php scope to avoid conflicts
set_flashdata.sublime-snippet fix missing php scope to avoid conflicts
set_json.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
this.sublime-snippet Revert "improved shortcut th"
unit_testing_run.sublime-snippet htmlentities on result & expected
upload.sublime-snippet indentation changed to tabs for universal use
uri_segment.sublime-snippet Issues #24 #25 #26 #27 and completed some snippets with descriptions
user_agent.sublime-snippet fix missing php scope to avoid conflicts
valid_ip.sublime-snippet fix missing php scope to avoid conflicts

README.md

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

Installation

With Package Control

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.

Without Package Control

If you haven't got Package Control installed you will need to make a clone of this repository into your packages folder, 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

Library

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

Active Record

  • db_delete
  • db_get
  • db_insert
  • db_select
  • db_update
  • db_where
  • db_last
  • db_order
  • db_result
  • db_result_array
  • db_row
  • db_row_array
  • db_free_result
  • db_num_fields
  • db_num_rows

Session

  • session_userdata
  • session_set_userdata
  • session_all_userdata
  • session_unset_userdata
  • session_sess_destroy

Misc

  • ci_start
  • construct
  • controller
  • model
  • crud
  • load_helper
  • load_library
  • load_model
  • 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

Bitdeli Badge

Something went wrong with that request. Please try again.