feat: release SysMVC 2.0 with enhanced CSRF protection and UI improvements

Major version upgrade from 1.0.0 to 2.0.0 including copyright year updates, website URL migration to syspanel.com.br, and comprehensive CSRF token handling improvements. The Twig csrf() helper now returns a complete hidden input field instead of a raw token value, and token generation is now automatic when empty. Session initialization has been centralized in BaseController, and child controllers now properly call parent constructors. CRUD views have been modernized with flexbox layouts and consistent CSRF rendering. Documentation has been expanded with features, requirements, and project structure sections, and donation sections have been added across all pages.
This commit is contained in:
marco
2026-09-04 15:43:17 -03:00
parent 281fdee119
commit 5a2482b030
50 changed files with 1318 additions and 199 deletions
@@ -0,0 +1,47 @@
<?php $_shouldextend[1]=1; ?>
<?php $this->startSection('title', 'Crud Example List'); ?>
<?php $this->startSection('content'); ?>
<div class="container mt-5">
<div class="d-flex justify-content-between align-items-center mb-4">
<h1 class="display-4 text-primary">Blade - Crud Example List</h1>
<a href="/crudexample/create" class="btn btn-success btn-lg">Add New Item</a>
</div>
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead class="table-dark">
<tr>
<th>ID</th>
<th>Name</th>
<th>Company</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $crudexample; $this->addLoop($__currentLoopData);$this->getFirstLoop();
foreach($__currentLoopData as $item): $loop = $this->incrementLoopIndices(); ?>
<tr>
<td><?php echo \htmlentities($item['id']??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities($item['name']??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td><?php echo \htmlentities($item['company']??'', ENT_QUOTES, 'UTF-8', false); ?></td>
<td>
<div class="d-flex">
<a href="/crudexample/show/<?php echo \htmlentities($item['id']??'', ENT_QUOTES, 'UTF-8', false); ?>" class="btn btn-info btn-sm mr-1">View</a>
<a href="/crudexample/edit/<?php echo \htmlentities($item['id']??'', ENT_QUOTES, 'UTF-8', false); ?>" class="btn btn-warning btn-sm mr-1">Edit</a>
<form action="/crudexample/delete/<?php echo \htmlentities($item['id']??'', ENT_QUOTES, 'UTF-8', false); ?>" method="POST" class="d-inline">
<?php echo \htmlentities(csrf()??'', ENT_QUOTES, 'UTF-8', false); ?>
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('Are you sure?')">Delete</button>
</form>
</div>
</td>
</tr>
<?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
</tbody>
</table>
</div>
</div>
<?php $this->stopSection(); ?>
<?php if (isset($_shouldextend[1])) { echo $this->runChild('layout'); } ?>