This Extensions provides the Codeigniter 4 Snippets snippets
Launch Code's command palette
ext install codeigniter4-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 |
ci4_user_agent | Initializing user Agent the Class |
ci4_email | Sending Email |
ci4_curl | Making HTTP Requests |
- Fork it (https://github.com/benemohamed/codeigniter4-snippets/fork)
- Create your feature branch (
git checkout -b my-new-snippet
) - Commit your changes (
git commit -am 'Add some snippet'
) - Push to the branch (
git push origin my-new-snippet
) - Create a new Pull Request
Happy coding!