zend framework 2

Zend Filter par configuration

Après avoir vu comment on mettait en place un inputFilter (ensemble d'élément Input), on voit maintenant comment appliquer des filtres sur chaque élément Input de notre inputFilter.

Rajouter Zend InputFilter

Les fonctionnalités de formulaire de ZF2 permet de monter à la volée (ou programmatiquement) des éléments pour filtrer et valider vos éléments de formulaire. Pour un élément de formulaire (Zend\Form\Element), il y a un élément Input (Zend\InputFilter\Input), à l'élément global Zend\Form\Form, il y a la correspondance Zend\InputFilter\InputFilter.

CoffeeBar Application 5/19 - Triggering the opening of a tab

Once we have created a form - which open a tab, we will assign an object to it and use that object while processing the form. We will see how this object will trigger our very first event, the starting point of our application.

CoffeeBar Application 4/19 - The Open Tab Form

In this chapter, we will build the form. Its particularity is to include a drop down component with customized datas. Let's take advantage of this application to learn how to create a customized Select component with a dependency.

CoffeeBar Application 3/19 - Spying on our cache

There are tutorials which are starting explaining the thing and then showing the first views after several chapters. Since i didn't know how to organize this one, i started to put the logic first then the views afterward. But i find it too frustrating to have to wait for the end of the tutorial to see what's happening. And truth is, in the real world, i need to see what is happening anyway.

CoffeeBar Application 2/19 - Install the framework

To start with our coffeebar application, let's start by installing our framework first. We will work with Zend Framework 2. This framework allows us to build nice web applications using the MVC architecture and when running, the application will launch automatically a bunch of managers : Service manager, Event manager, Form elements manager which will be very useful in our case.

Managing Dependencies - Constructor Injection in controllers

A quick post on how to inject dependencies into our controller's constructor.

Managing Dependencies - Custom Select Element in Form

Personal reminder about how to code dependencies in custom select element in forms.

Zend Mvc Router par configuration

Définir les routes en utilisant la configuration uniquement

Persistence des données - Zend Db TableGateway

En architecture trois tiers, le troisième tiers est la couche d'accès aux données. Afin d'accéder à votre couche d'accès aux données, Zend Framework a créé la classe TableGateway (et consoeurs).


Subscribe to RSS - zend framework 2