Permalink
Browse files

Init

  • Loading branch information...
0 parents commit 2f52d65a2fa53fe432a5c4c3e48691c70b142b29 = committed Sep 18, 2012
Showing with 170 additions and 0 deletions.
  1. +114 −0 README.md
  2. +14 −0 construct.sublime-snippet
  3. +22 −0 controller.sublime-snippet
  4. +1 −0 messages/0.1.1.txt
  5. +19 −0 model.sublime-snippet
114 README.md
@@ -0,0 +1,114 @@
+This is a [Sublime Text][sublime] package which includes a bunch of handy snippets for doing Codeigniter framework development.
+
+## Installation ##
+
+### With Package Control ###
+
+If you have the [Package Control][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
+
+
+[sublime]: http://www.sublimetext.com/
+[package_control]: http://wbond.net/sublime_packages/package_control
+
+If you find error or wathever 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
+* 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
+*
+
+
+#### 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
@@ -0,0 +1,14 @@
+<snippet>
+ <content><![CDATA[
+public function __construct()
+{
+ parent::__construct();
+ ${0://Do your magic here}
+}
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>construct</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php</scope>
+ <description>CakePHP Class Constructor</description>
+</snippet>
@@ -0,0 +1,22 @@
+<snippet>
+ <content><![CDATA[
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+
+class ${1:${TM_FILENAME/(.+)\..+|.*/\u$1/:Controllername}} extends AppController {
+
+ public function index()
+ {
+ $0
+ }
+
+}
+
+/* End of file ${1/(.+)/\l$1/:Controllername}.php */
+/* Location: ./application/controllers/${1/(.+)/\l$1/:Controllername}.php */
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>controller</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php, text.html.basic, text.plain</scope>
+ <description>CakePHP Base Controller</description>
+</snippet>
@@ -0,0 +1 @@
+CakePHP Snippets 0.0.1 Changelog:
@@ -0,0 +1,19 @@
+<snippet>
+ <content><![CDATA[
+<?php
+
+class ${1:${TM_FILENAME/(.+)\..+|.*/\u$1/:ModelName}} extends AppModel {
+
+ $0
+
+}
+
+/* End of file ${1/(.+)/\l$1/:ModelName}.php */
+/* Location: ./application/controllers/${1/(.+)/\l$1/:ModelName}.php */
+]]></content>
+ <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
+ <tabTrigger>model</tabTrigger>
+ <!-- Optional: Set a scope to limit where the snippet will trigger -->
+ <scope>source.php, text.html.basic, text.plain</scope>
+ <description>CakePHP Base Model</description>
+</snippet>

0 comments on commit 2f52d65

Please sign in to comment.