Releases: adereksisusanto/codeigniter4-snippets
codeigniter4-snippets - 0.1.1
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
Donate
If this project help you reduce time to develop, you can give me a cup of coffee :)
[Released - 0.1.1] - 2021-10-18
-
Fixed Bugs Snippets.
-
Add New Snippets.
codeigniter4-snippets - 0.1.0
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
Donate
If this project help you reduce time to develop, you can give me a cup of coffee :)
[Released - 0.1.0] - 2021-09-21
-
Fixed Bugs Snippets.
-
Update Snippets.
-
Add New Snippets.
codeigniter4-snippets - 0.0.9
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.9] - 2021-09-20
-
Fixed Bugs Snippets.
-
Add New Snippets.
codeigniter4-snippets - 0.0.8
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.8] - 2021-04-18
-
Add New Snippets.
codeigniter4-snippets - 0.0.7
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.7] - 2021-04-06
-
Add New Snippets.
codeigniter4-snippets - 0.0.6
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.6] - 2021-04-05
-
Fixed Bugs Snippets.
-
Add New Snippets.
codeigniter4-snippets - 0.0.5
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.5]
-
Fixed Bugs Links.
License & Download
codeigniter4-snippets - 0.0.4
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.4]
-
Fixed Bugs.
-
Change Command ( read ).
-
Add Docs.
-
Add New Snippets {
[ProjectRoot]/app/Views/**.php
}Command Description Output ci4:views:foreach Make foreach
in View files<?php foreach ($items as $item) : ?> <li><?= $item ?></li> <?php endforeach ?>
ci4:views:if Make if
in View files<?php if (condition) : ?> <!-- TRUE --> <?php endif ?>
ci4:views:if-else Make if else
in View files<?php if (condition) : ?> <!-- TRUE --> <?php else : ?> <!-- FALSE --> <?php endif ?>
ci4:views:if-elseif Make if elseif
in View files<?php if (condition) : ?> <!-- TRUE --> <?php elseif (condition) : ?> <!-- FALSE --> <?php endif ?>
ci4:views:if-elseif-else Make if elseif else
in View files<?php if (condition) : ?> <!-- TRUE 1 --> <?php elseif (condition) : ?> <!-- TRUE 2 --> <?php else : ?> <!-- FALSE --> <?php endif ?>
License & Download
codeigniter4-snippets - 0.0.3
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.3]
-
Fixed Bugs
-
Add Snippets
Command | Description | Output |
---|---|---|
ci4_routes_add | Make routes add |
$routes->add('url', 'ControllerName::index'); |
ci4_routes_cli | Make Command-Line only Routes |
$routes->cli('migrate', 'App\Database::migrate'); |
ci4_routes_env | Make routes environment |
$routes->environment('development' , function($routes)
{
$routes->add('builder','Tools\Builder::index');
}); |
ci4_routes_get | Make routes get |
$routes->get('url', 'ControllerName::index'); |
ci4_routes_group | Make routes group |
$routes->group('admin', function($routes)
{
$routes->add('url','ControllerName::index');
}); |
ci4_routes_group_filter | Make routes group filter |
$routes->group('api' , ['filter' => 'api-auth'], function($routes)
{
$routes->resource('url');
}); |
ci4_routes_group_multiple | Make routes group multiple |
$routes->group('admin', function($routes)
{
$routes->group('users', function($routes)
{
$routes->add('list','Admin\Users::list');
});
}); |
ci4_routes_group_namespace | Make routes group namespace |
$routes->group('api' , ['namespace' => 'App\API\v1'], function($routes)
{
$routes->resource('url');
}); |
ci4_routes_post | Make routes post |
$routes->post('url', 'ControllerName::index'); |
ci4_routes_subdomain | Make Routes Limit to Subdomains |
$routes->add('from', 'to', ['subdomain' => '*']); |
ci4_routes_verbs | HTTP verbs in routes, HTTP verb (GET, POST, PUT, DELETE, etc) |
$routes->get('products', 'Product::feature');
or
$routes->post('products', 'Product::feature');
or
$routes->put('products/(:num)', 'Product::feature');
or
$routes->delete('products/(:num)', 'Product::feature'); |
codeigniter4-snippets - 0.0.2
Change Log
All notable changes to the "codeigniter4-snippets" extension will be documented in this file.
Check Keep a Changelog for recommendations on how to structure this file.
[Released - 0.0.2]
- Add Snippets
Command | Description | Output |
---|---|---|
ci4_extend | Make extend | <?= $this->extend('code_here') ;?> |
ci4_include | Make include | <?= $this->include('code_here') ;?> |
ci4_rendersection | Make renderSection | <?= $this->renderSection('code_here') ;?> |