Skip to content

Commit

Permalink
Release version 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adereksisusanto committed Sep 21, 2021
1 parent 9bce00a commit 103a2de
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 111 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,26 @@

All notable changes to the "codeigniter4-snippets" extension will be documented in this file.

Check [Keep a Changelog](https://github.com/adereksisusanto/codeigniter4-snippets/releases/tag/0.0.9) for recommendations on how to structure this file.
Check [Keep a Changelog](https://github.com/adereksisusanto/codeigniter4-snippets/releases/tag/0.1.0) 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](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://paypal.me/adereksisusanto?locale.x=id_ID) [![Donate](https://img.shields.io/badge/Donate-trakteer.id-red)](https://trakteer.id/adereksisusanto)

## [Released - 0.1.0] - 2021-09-21

- #### Fixed Bugs Snippets.
- #### Update Snippets.
- [Controllers](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md)
- [Controller Resources](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md#controller-resources)
- #### Add New Snippets.
- [Controllers](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md)
- [Controller Presenter](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md##controller-presenter)
- [Routes](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md)
- [Placeholders](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md#placeholders)
- [Custom Placeholders](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md#custom-placeholders)

## [Released - 0.0.9] - 2021-09-20

- #### Fixed Bugs Snippets.
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ ext install adereksisusanto.codeigniter4-snippets
### Table of Content

- [Controllers](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md)
- [Controller Resources](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md#controller-resources) <sup style="color:red">Update</sup>
- [Controller Presenter](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/CONTROLLERS.md##controller-presenter) <sup style="color:red">New</sup>
- [Migrations](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/MIGRATIONS.md)
- [Models](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/MODELS.md)
- [Routes](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md)
- [Validation](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/VALIDATIONS.md) [new]
- [Validation in Controller](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/VALIDATIONS.md#validation-in-controller) [new]
- [Routes](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md) <sup style="color:red">New</sup>
- [Placeholders](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md#placeholders) <sup style="color:red">New</sup>
- [Custom Placeholders](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/ROUTES.md#custom-placeholders) <sup style="color:red">New</sup>
- [Validation](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/VALIDATIONS.md)
- [Validation in Controller](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/VALIDATIONS.md#validation-in-controller)
- [Views](https://github.com/adereksisusanto/codeigniter4-snippets/blob/main/docs/Views.md)

Happy coding!
Expand Down
222 changes: 166 additions & 56 deletions docs/CONTROLLERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,63 +3,173 @@
### `[ProjectRoot]/app/Controllers/*.php`

### Table of Content

- [Alternate Snippets for Controllers](#alternate-snippets-for-controllers)
- [`[ProjectRoot]/app/Controllers/*.php`](#projectrootappcontrollersphp)
- [Table of Content](#table-of-content)
- [Controllers](#controllers)
- [Controller Resources](#controller-resources)
- [Controller Resources](#controller-resources) <sup style="color:red">Update</sup>
- [Controller Presenter](#controller-presenter) <sup style="color:red">New</sup>

#### Controllers

- Command
```code
ci4:controller
```
- Output
```php
public function index()
{
// code
}
```

#### Controller Resources

- Command
```code
ci4:controller:resources
```
- Output

```php
public function __construct()
{
// __construct code
}

public function index()
{
// index code
}

public function create()
{
// create code
}

public function read($id)
{
// read code
}

public function update($id)
{
// update code
}

public function delete($id)
{
// delete code
}
```
<table style="width:100%">
<thead>
<tr>
<th align="center">COMMANDS</th>
<th align="center">RENDERS</th>
</tr>
</thead>
<tbody>
<tr>
<td nowrap style="vertical-align: top;">

```code
ci4:controller
```
</td>
<td nowrap>

```php
public function index()
{
// code
}
```
</td>
</tr>
</tbody>
</table>

##### Controller Resources

<table style="width:100%">
<thead>
<tr>
<th align="center">COMMANDS</th>
<th align="center">RENDERS</th>
</tr>
</thead>
<tbody>
<tr>
<td nowrap style="vertical-align: top;">

```code
ci4:controller:resources
```

</td>
<td nowrap>

```php
public function __construct()
{
// __construct code
}

public function index()
{
// index code
}

public function show($id = null)
{
// show code
}

public function new()
{
// new code
}

public function create()
{
// create code
}

public function edit($id = null)
{
// edit code
}

public function update($id = null)
{
// update code
}

public function delete($id = null)
{
// delete code
}
```
</td>
</tr>
</tbody>
</table>

##### Controller Presenter

<table style="width:100%">
<thead>
<tr>
<th align="center">COMMANDS</th>
<th align="center">RENDERS</th>
</tr>
</thead>
<tbody>
<tr>
<td nowrap style="vertical-align: top;">

```code
ci4:controller:presenter
```

</td>
<td nowrap>

```php
public function __construct()
{
// __construct code
}

public function index()
{
// index code
}

public function show($id = null)
{
// show code
}

public function new()
{
// new code
}

public function create()
{
// create code
}

public function edit($id = null)
{
// edit code
}

public function update($id = null)
{
// update code
}

public function remove($id = null)
{
// remove code
}

public function delete($id = null)
{
// delete code
}
```
</td>
</tr>
</tbody>
</table>
Loading

0 comments on commit 103a2de

Please sign in to comment.