Skip to content

Commit

Permalink
Added Descriptions. Some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Apr 17, 2012
1 parent 528aa2a commit 9b3534b
Show file tree
Hide file tree
Showing 24 changed files with 64 additions and 25 deletions.
1 change: 1 addition & 0 deletions anchor.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ anchor('${1:url}', '${2:linkname}', '${3:attributs}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>anchor</tabTrigger>
<description>CI_Display anchor</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions calendar.sublime-snippet
Expand Up @@ -11,6 +11,7 @@ echo \$this->calendar->generate(${5:year}, ${6:month}, \$data);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>calendar</tabTrigger>
<description>CI_Load Display Calender</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions cart_add.sublime-snippet
Expand Up @@ -12,6 +12,7 @@
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cart_add</tabTrigger>
<description>CI_Add cart data</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions cart_update.sublime-snippet
Expand Up @@ -9,6 +9,7 @@
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>cart_update</tabTrigger>
<description>CI_Update cart data</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope>-->
</snippet>
1 change: 1 addition & 0 deletions ci_start.sublime-snippet
Expand Up @@ -7,6 +7,7 @@
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_start</tabTrigger>
<description>CI_Basic CI structure</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
3 changes: 2 additions & 1 deletion construct.sublime-snippet
Expand Up @@ -3,11 +3,12 @@
public function __construct()
{
parent::__construct();
//Do your magic here
${1://Do your magic here}

This comment has been minimized.

Copy link
@nWidart

nWidart Apr 17, 2012

Author Owner

Just to make it easier/faster.

}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>construct</tabTrigger>
<description>Contructor function</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
32 changes: 18 additions & 14 deletions controller.sublime-snippet
@@ -1,20 +1,24 @@
<snippet>
<content><![CDATA[
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<content><![CDATA[
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class ${1:Controllername} extends CI_Controller {
public function index()
{
}
class ${1:Index} extends CI_Controller {
public function index()
{
\$this->load->view('${2:index}');
}
$0
}
/* End of file ${2:Controllername}.php */
/* Location: ./application/controllers/${3:Controllername}.php */
/* End of file ${3:index}.php */
/* Location: ./application/controllers/${4:index}.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</scope> -->
</snippet>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_controller</tabTrigger>
<description>Starter controller</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
3 changes: 2 additions & 1 deletion crud.sublime-snippet
Expand Up @@ -6,7 +6,7 @@ class ${1:Controllername} extends CI_Controller {
public function __construct()
{
parent::__construct();
//Load Dependencies
${1://Load Dependencies}
}
Expand Down Expand Up @@ -37,6 +37,7 @@ class ${1:Controllername} extends CI_Controller {
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>crud</tabTrigger>
<description>CI_CRUD class</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
3 changes: 2 additions & 1 deletion display_cart.sublime-snippet
@@ -1,6 +1,6 @@
<snippet>
<content><![CDATA[
<?php echo form_open('path/to/controller/update/function'); ?>
<?php echo form_open('${1:path/to/controller/update/function}'); ?>
<table cellpadding="6" cellspacing="1" style="width:100%" border="0">
Expand Down Expand Up @@ -55,6 +55,7 @@
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>display_cart</tabTrigger>
<description>CI_Display a cart</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!--<scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions email.sublime-snippet
Expand Up @@ -16,6 +16,7 @@ echo \$this->email->print_debugger();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>email</tabTrigger>
<description>CI_Send an email</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_checkbox.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_checkbox(${1:name}, ${2:value}, TRUE);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_checkbox</tabTrigger>
<description>CI_Add form checkbox</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_dropdown.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_dropdown('${1:name}', \$options, '${2:default}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_dropdown</tabTrigger>
<description>CI_Add form dropdown</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_hidden.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_hidden('${1:name}', '${2:value}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_hidden</tabTrigger>
<description>CI_Add form hidden</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_input.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_input('${1:name}', '${2:value}', '${3:attributs}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_input</tabTrigger>
<description>CI_Add form input</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_open.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_open('${1:url}', '', \$hidden);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_open</tabTrigger>
<description>CI_Add form open()</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_password.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_password('${1:name}', '${2:value}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_password</tabTrigger>
<description>CI_Add form password()</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_submit.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_submit('${1:name}', '${2:value}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_submit</tabTrigger>
<description>CI_Add form submit btn</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_textarea.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_textarea('${1:name}', '${2:value}', '${3:attributs}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_textarea</tabTrigger>
<description>CI_Add form textarea</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_upload.sublime-snippet
Expand Up @@ -4,6 +4,7 @@ form_upload('${1:name}');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_upload</tabTrigger>
<description>CI_Add form upload</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions form_validation.sublime-snippet
Expand Up @@ -4,6 +4,7 @@
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>form_validation</tabTrigger>
<description>CI_Add form validation</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions generate_table.sublime-snippet
Expand Up @@ -13,6 +13,7 @@ echo \$this->table->generate(\$data);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>generate_table</tabTrigger>
<description>CI_Load Gen table</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
29 changes: 21 additions & 8 deletions model.sublime-snippet
@@ -1,11 +1,24 @@
<snippet>
<content><![CDATA[
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<content><![CDATA[
<?php
class ${1:ModelName} extends CI_Model { }
class ${1:Class_Name} extends CI_Model{
function __construct(){
parent::__construct()
}
function $0(){
}
}
?>
]]></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.python</scope> -->
</snippet>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_model</tabTrigger>
<description>Starter Model</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions pagination.sublime-snippet
Expand Up @@ -30,6 +30,7 @@ echo \$this->pagination->create_links();
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>pagination</tabTrigger>
<description>CI_Load Create pagination</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>
1 change: 1 addition & 0 deletions upload.sublime-snippet
Expand Up @@ -18,6 +18,7 @@ else{
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>upload</tabTrigger>
<description>CI_Load upload lib</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.php</scope> -->
</snippet>

0 comments on commit 9b3534b

Please sign in to comment.