Skip to content

Commit

Permalink
Create a new database connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmont committed Apr 13, 2020
1 parent de26af4 commit cbe5e01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ If you find error or whatever just fork it and send me a pull request.
| ci_issecure | Check if request is HTTPS |
| ci_log | Logging information |
| ci_filter | Create a new filter class |
| ci_db_conn | Create a new database connection |

# Contributors

Expand Down
2 changes: 1 addition & 1 deletion ci4_filter.sublime-snippet
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ class ${1:${TM_FILENAME/(.+)\..+|.*/\u$1/:FilterName}}Filter implements FilterIn
]]></content>
<tabTrigger>ci_filter</tabTrigger>
<scope>source.php, text.html.basic, text.plain</scope>
<description>CI4 - Base Controller</description>
<description>CI4 - Base Filter Class</description>
</snippet>
8 changes: 8 additions & 0 deletions ci_db_conn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<snippet>
<content><![CDATA[
\$db = \Config\Database::connect();
]]></content>
<tabTrigger>ci_db_connr</tabTrigger>
<scope>source.php</scope>
<description>CI4 - Create a new database connection</description>
</snippet>

0 comments on commit cbe5e01

Please sign in to comment.