1. Go to this page and download the library: Download pavlakis/seaudi library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pavlakis / seaudi example snippets
namespace PHPMinds\Action;
use Slim\Views\Twig;
use Psr\Log\LoggerInterface;
use Slim\Http\Request;
use Slim\Http\Response;
class NotFoundAction
{
private $view;
private $logger;
public function __construct(Twig $view, LoggerInterface $logger)
{
$this->view = $view;
$this->logger = $logger;
}
public function dispatch(Request $request, Response $response, $args)
{
$this->view->render($response, '404.twig');
return $response;
}
}