Skip to content

Instantly share code, notes, and snippets.

View kevin2244's full-sized avatar

Kevin Smith kevin2244

  • United Kingdom
View GitHub Profile
@kevin2244
kevin2244 / AddAmericanTruckAction.php
Created February 18, 2018 15:02
Using Zend Form View Helpers in a Plates template in a Zend Expressive app.
<?php
namespace App\Action;
use Interop\Http\ServerMiddleware\DelegateInterface;
use Interop\Http\ServerMiddleware\MiddlewareInterface;
use Psr\Http\Message\ServerRequestInterface;
use Zend\Diactoros\Response\HtmlResponse;
use Zend\Expressive\Template\TemplateRendererInterface;
use App\Model\Repository\TruckRepository;
use App\Model\Truck;
use Zend\Hydrator\ArraySerializable;