for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller;
use Bone\Mvc\Controller;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\HtmlResponse;
use Zend\Diactoros\Response\JsonResponse;
/**
* Class IndexController
*
* If you need to create a constructor, edit the package to set up automatically via dependency injection
* @package App\Controller
*/
class IndexController extends Controller
{
* @param ServerRequestInterface $request
* @param array $args
* @return ResponseInterface
public function indexAction(ServerRequestInterface $request, array $args) : ResponseInterface
$body = $this->view->render('index/index');
return new HtmlResponse($body);
}
public function learnAction(ServerRequestInterface $request, array $args) : ResponseInterface
$body = $this->view->render('index/learn');