forked from mpmont/ci-snippets
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |