Questions tagged [mezzio]

Mezzio is a web application and API framework written in PHP and using standards-based middleware.

Mezzio, formerly Expressive, is a web application and API framework written in PHP and using standards-based middleware. It consumes request handlers and middleware, using HTTP messages.

Mezzio is a sub-project of the project.

123 questions
0
votes
2 answers

zend expressive + doctrine custom types

I'm trying to map a custom type to a string. Here's my entity definition: /** * @var string * * @ORM\Column(name="type", type="string", columnDefinition="my_type_enum", nullable=false) */ But when I try to create migration (migration:diff)…
Diego Betto
  • 721
  • 6
  • 19
0
votes
1 answer

How to get all categories in one request

How can I get all categories in one request? I am using this mapping: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/association-mapping.html#one-to-many-self-referencing My entity definition: /** * @var…
Drakulitka
  • 41
  • 6
0
votes
1 answer

zend-form collection doesn't generate right name

I'm currently working with zend-expressive and now I would like to use zend-form to generate a form. Everything is installed properly. I now have the following setup:
0
votes
1 answer

Zend Expressive - Best way to inject middleware

I am currently learning zend expressive and I can see a couple of options as to how to access middleware within routes/actions. In the expressive skeleton application, there is a HomePageFactory where the container is injected, then the router,…
Neddage
  • 306
  • 1
  • 7
0
votes
2 answers

Zend\Http\Client as PSR-7 middleware for Zend Expressive

How should we add Zend\Http\Client (or other modules) as PSR-7 middleware? First i thought was: Case an Action add factory inject Zend\Http\Client instance use Zend\Http\Client instance in Action like $client->request('GET'); But im not sure if…
cottton
  • 1,522
  • 14
  • 29
0
votes
2 answers

Zend Expressive Dependency Injection

If you want to have another middleware/object in a middleware you have to use a factory like namespace App\Somnething; use Interop\Container\ContainerInterface; class MyMiddlewareFactory { public function __invoke(ContainerInterface $container,…
cottton
  • 1,522
  • 14
  • 29
0
votes
1 answer

How to display a zend-form element select in twig template

How to display a zend-form element select in twig template? Do as follows: Form: $this->add([ 'name' => 'parent', 'type' => 'Zend\Form\Element\Select', 'options' => [ 'label' => 'Принадлежность', 'empty_option' =>…
Drakulitka
  • 41
  • 6
0
votes
1 answer

Zend Expressive: Internal Server Error 500 when activating the Service in Action

Please help to understand. In the standard application CRUD, at connection of Service: /src/App/Panel/Service/CategoriesService.php in Action: /src/App/Panel/Action/PanelCategoriesAction.php happens 500 error link to repository:…
Drakulitka
  • 41
  • 6
0
votes
3 answers

zend expressive custom configuration key

How to properly create a custom configuration key in zend expressive I tried to create a file custom-config.php in the config/autoload directory but the key is not read by the container my custom-config.php looks like this
metamp_mvc
  • 65
  • 10
0
votes
2 answers

Doctrine, microservices, and zend expressive

I recently started delving in to zend expressive. I know zend makes use of zend db typically. In my project I am developing microservices and was wondering what the opinion is about using doctrine with regards to microservices in zend expressive.…
bcgould04
  • 61
  • 2
0
votes
1 answer

How to check existence of a template before rendering in Zend Expressive?

How to check template before rendering in Zend Expressive? Here is my action: class Section { private $container; private $template; public function __construct(ContainerInterface $container, Template\TemplateRendererInterface $template…
Philipp Klemeshov
  • 383
  • 1
  • 5
  • 14
0
votes
2 answers

Zend Expressive, get service from Php Plates template

I use Zend Expressive framework via default ZE skeleton app with Zend ServiceManager as DIC and Plates as template engine. Let's say I've got index.phtml template. I want to get some service, which dumps me assets, smth like:
userlond
  • 3,632
  • 2
  • 36
  • 53
0
votes
1 answer

Why Smarty templating engine looks like unsupported?

I am using smarty template engine for years, and I may use it in further projects. But I am not sure if this is a good idea. While Smarty is an active project updated regularly, it looks like an inactive, unsupported project. smarty.net Website…
bkilinc
  • 989
  • 2
  • 13
  • 28
-1
votes
1 answer

Mezzio => Service not registered

I have created a new module named ModuleA, which contains a middleware named MiddlewareA. I also have created a route (e.g. "login") which has MiddlewareA in its pipeline. When I send a request to the path "login", get response which states…
-1
votes
1 answer

What is Zend Expressive and Zend MVC?

I am starting a new project in PHP and wanted to choose the latest ZendFramework. I see that Zend Framework 3 has been released so I wanted to start with Zend Framework 3 itself. But when I go to the INSTALL page of Zend, they have given options as…
Ashish Ranjan
  • 12,760
  • 5
  • 27
  • 51
1 2 3
8
9