CodeIgniter 4 Snippets
Codeigniter 4 snippets for Sublime Text 3
Labels snippets
Details
Installs
- Total 9K
- Win 7K
- Mac 502
- Linux 976
Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 1 | 0 | 0 | 1 | 3 | 1 | 0 | 0 | 1 | 3 | 0 | 7 | 1 | 1 | 1 | 0 | 3 | 1 | 2 | 0 | 1 | 3 | 2 | 4 | 2 | 0 | 0 | 1 | 0 | 0 | 4 | 1 | 1 | 2 | 1 | 1 | 5 | 0 | 1 | 4 | 1 | 1 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Codeigniter 4 Snippets for Sublime Text 2/3
This is a Sublime Text package which includes a bunch of handy snippets for doing Codeigniter 4 framework development.
Easy installation
If you have the Package Control package installed, you can install Codeigniter framework Snippets from inside Sublime Text itself. Open the Command Palette and select “Package Control: Install Package”, then search for Codeigniter 4 framework Snippets.
Manual installation
If you haven't got Package Control installed you will need to make a clone of this repository into your packages folder (Preferences > Browse packages…), like so:
git clone https://github.com/mpmont/ci4-snippets ci4-snippets
If you find error or whatever just fork it and send me a pull request.
Avaiable snippets
Command | Description |
---|---|
ci_model | Model namespace |
ci_controller | Controller namespace |
ci_load_helper | Load helper sintax |
ci_view | Echo CI view |
ci_new_renderer | New View Renderer |
ci_render_section =ci_log | Logging information> Render section view |
ci_extend_layout | Extend layout (insert view into a layout) |
ci_view_section | View section (content within a view that extends a layout) |
ci_view_include | View include |
ci_get_locale | Get Locale |
load_database | Load the Database |
ci_db_query | Query |
ci_query_result | Get the query result as object |
ci_query_result_array | Get the query result as array |
ci_query_row | Get the query result as row (object) |
ci_query_row_array | Get the query result as row (array) |
ci_addroute | Add Route |
ci_addrouteclosure | Add Route With Closure |
ci_anchor | Anchor Link |
ci_getCookie | Return any data from $_COOKIE |
ci_getGet | Return any data from $_GET |
ci_getPost | Return any data from $_POST |
ci_getServer | Return any data from $_SERVER |
ci_getVar | Return any data from $_GET, $POST, or $_COOKIE |
ci_isajax | Check if request is ajax |
ci_iscli | Check if request is CLI |
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 |
ci_entity | Create a new Entity class |
ci_cache | Save into the cache for x minutes |
ci_getcache | Grab an instance of the cache engine directly through the Services class |
ci_email | Basic example demonstrating how you might send email |
ci_email_config | Basic email Preferences |
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 |
ci4_affectedRows | Query builder get the affected rows |
ci4_countAll | Query builder count all results |
ci4_db_from | Query builder set From |
ci4_db_join | Query builder set Join |
ci4_db_whereNotIn | Query builder Where Not In |
ci4_db_whereNotInSubquery | Query builder where not in with subquery |
ci4_getPlatform | Get DB platform |
ci4_getVersion | Get DB Version |
ci4_insertID | Get inserted ID |
ci4_lastQuery | Get last query from query builder |