Skip to content

Commit

Permalink
Created new iniController snippet / renamed ci_db_conn
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmont committed Jun 3, 2020
1 parent dab4d07 commit f7decd9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Codeigniter 4 Snippets for Sublime Text 2/3
=======================

[![Codeigniter](https://img.shields.io/badge/Codeigniter-v4.0-orange.svg)](http://codeigniter.com/)

[![Downloads](https://packagecontrol.herokuapp.com/downloads/CodeIgniter%204%20Snippets.svg?color=80d4cd)](https://packagecontrol.io/packages/CodeIgniter%204%20Snippets)

This is a [Sublime Text][sublime] package which includes a bunch of handy snippets for doing Codeigniter 4 framework development.
Expand Down Expand Up @@ -65,6 +64,7 @@ If you find error or whatever just fork it and send me a pull request.
| ci_html_table | Create a basic html table based in a given array |
| ci_query_table | Create a basic html table based in query result |
| ci_table_template | Set your basic html table layout |
| ci_inicontroller | Create an init controller function |

# Contributors

Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions ci4_init_controller.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<snippet>
<content><![CDATA[
public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)
{
parent::initController(\$request, \$response, \$logger);
${1:default}
}
]]></content>
<tabTrigger>ci_inicontroller</tabTrigger>
<scope>source.php</scope>
<description>CI4 - Create an init controller function</description>
</snippet>
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"install": "messages/install.txt",
"1.0.20": "messages/1.0.20.txt",
"1.0.24": "messages/1.0.24.txt"
"1.0.24": "messages/1.0.24.txt",
"1.0.25": "messages/1.0.25.txt"
}
3 changes: 3 additions & 0 deletions messages/1.0.25.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Added some more codeigniter 4 snippets to our repo

ci_inicontroller - Create an init controller function

0 comments on commit f7decd9

Please sign in to comment.