Skip to content

Releases: adereksisusanto/codeigniter4-snippets

codeigniter4-snippets - 0.1.1

18 Oct 06:35
Compare
Choose a tag to compare

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 :)

Donate Donate

[Released - 0.1.1] - 2021-10-18

codeigniter4-snippets - 0.1.0

21 Sep 16:18
Compare
Choose a tag to compare

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 :)

Donate Donate

[Released - 0.1.0] - 2021-09-21

codeigniter4-snippets - 0.0.9

19 Sep 20:00
Compare
Choose a tag to compare

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

codeigniter4-snippets - 0.0.8

18 Apr 15:41
Compare
Choose a tag to compare

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

codeigniter4-snippets - 0.0.7

06 Apr 13:29
Compare
Choose a tag to compare

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

codeigniter4-snippets - 0.0.6

05 Apr 13:28
Compare
Choose a tag to compare

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

codeigniter4-snippets - 0.0.5

21 Feb 20:02
Compare
Choose a tag to compare

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

GitHub license Visual Studio Marketplace Downloads

codeigniter4-snippets - 0.0.4

21 Feb 19:34
Compare
Choose a tag to compare

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

GitHub license Visual Studio Marketplace Downloads

codeigniter4-snippets - 0.0.3

20 Feb 07:02
Compare
Choose a tag to compare

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

19 Feb 19:01
Compare
Choose a tag to compare

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') ;?>