Refactor Scontainers management
- Removed legacy Scontainers controller and view files, transitioning to a new controller structure. - Introduced ScontainersController to handle CRUD operations with improved dependency injection. - Created ScontainersRepository for database interactions, encapsulating logic for container management. - Updated container edit and list views to utilize new templating system. - Added unit tests for ScontainersRepository and ScontainersController to ensure functionality. - Enhanced form handling for container editing, including validation and error management.
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
namespace admin\view;
|
||||
|
||||
class Scontainers
|
||||
{
|
||||
public static function container_edit( $container, $languages )
|
||||
{
|
||||
|
||||
$tpl = new \Tpl;
|
||||
$tpl -> container = $container;
|
||||
$tpl -> languages = $languages;
|
||||
return $tpl -> render( 'scontainers/container-edit' );
|
||||
}
|
||||
|
||||
public static function containers_list()
|
||||
{
|
||||
$tpl = new \Tpl;
|
||||
return $tpl -> render( 'scontainers/containers-list' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user