A list of codeigniter snippets for Sublime Text 2
Pull request Compare This branch is 69 commits behind mpmont:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
messages
README.md
anchor.sublime-snippet
calendar.sublime-snippet
cart_add.sublime-snippet
cart_update.sublime-snippet
ci_start.sublime-snippet
cieof.sublime-snippet
ciline.sublime-snippet
construct.sublime-snippet
controller.sublime-snippet
cookie.sublime-snippet
crud.sublime-snippet
db_affected.sublime-snippet
db_delete.sublime-snippet
db_free_result.sublime-snippet
db_get.sublime-snippet
db_insert.sublime-snippet
db_insertbatch.sublime-snippet
db_last.sublime-snippet
db_num_fields.sublime-snippet
db_num_rows.sublime-snippet
db_order.sublime-snippet
db_result.sublime-snippet
db_result_array.sublime-snippet
db_row.sublime-snippet
db_row_array.sublime-snippet
db_select.sublime-snippet
db_truncate.sublime-snippet
db_update.sublime-snippet
db_where.sublime-snippet
display_cart.sublime-snippet
email.sublime-snippet
fetch_class.sublime-snippet
fetch_method.sublime-snippet
fetch_module.sublime-snippet
flashdata.sublime-snippet
form_checkbox.sublime-snippet
form_close.sublime-snippet
form_dropdown.sublime-snippet
form_hidden.sublime-snippet
form_input.sublime-snippet
form_label.sublime-snippet
form_open.sublime-snippet
form_password.sublime-snippet
form_submit.sublime-snippet
form_textarea.sublime-snippet
form_upload.sublime-snippet
form_validation.sublime-snippet
generate_table.sublime-snippet
get.sublime-snippet
get_instance.sublime-snippet
get_post.sublime-snippet
get_request_header.sublime-snippet
ip_address.sublime-snippet
is_ajax.sublime-snippet
is_cli.sublime-snippet
library.sublime-snippet
load_helper.sublime-snippet
load_library.sublime-snippet
load_model.sublime-snippet
load_module.sublime-snippet
load_view.sublime-snippet
log.sublime-snippet
messages.json
migration.sublime-snippet
model.sublime-snippet
output_json.sublime-snippet
output_profiler.sublime-snippet
package-metadata.json
pagination.sublime-snippet
post.sublime-snippet
request_headers.sublime-snippet
run_validation.sublime-snippet
server.sublime-snippet
set_cookie.sublime-snippet
set_flashdata.sublime-snippet
set_json.sublime-snippet
upload.sublime-snippet
uri_segment.sublime-snippet
user_agent.sublime-snippet
valid_ip.sublime-snippet

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

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

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