Skip to content

Commit

Permalink
Added some snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Apr 17, 2012
1 parent 9b3534b commit 0ab21fd
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ci_404.sublime-snippet
@@ -0,0 +1,18 @@
<snippet>
<content><![CDATA[
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_403</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
10 changes: 10 additions & 0 deletions ci_denied.sublime-snippet
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_denied</tabTrigger>
<description>Denied message</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.php</scope>
</snippet>
10 changes: 10 additions & 0 deletions ci_routes.sublime-snippet
@@ -0,0 +1,10 @@
<snippet>
<content><![CDATA[
\$route['${1:route}'] = "${2:route}"
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_route</tabTrigger>
<description>Routes setup</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
6 changes: 6 additions & 0 deletions load_helper.sublime-snippet
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[\$this->load->helper('${1:variable}');]]></content>
<tabTrigger>ci_load</tabTrigger>
<scope>source.php</scope>
<description>Load Helper</description>
</snippet>
6 changes: 6 additions & 0 deletions load_library.sublime-snippet
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[\$this->load->library('${1:variable}');]]></content>
<tabTrigger>ci_load</tabTrigger>
<scope>source.php</scope>
<description>Load Library</description>
</snippet>
6 changes: 6 additions & 0 deletions load_model.sublime-snippet
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[\$this->load->model('${1:variable}');]]></content>
<tabTrigger>ci_load</tabTrigger>
<scope>source.php</scope>
<description>Load Model</description>
</snippet>
19 changes: 19 additions & 0 deletions view.sublime-snippet
@@ -0,0 +1,19 @@
<snippet>
<content><![CDATA[
<!DOCTYPE html>
<html>
<head>
<title>${1:View_title}</title>
</head>
<body>
$0
</body>
</html>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>ci_view</tabTrigger>
<description>Starter View</description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>

0 comments on commit 0ab21fd

Please sign in to comment.