Précédent   Forum des professionnels en informatique > PHP > Outils > Zend > Zend Framework > Zend_Form
Zend_Form Forum d'entraide pour le composant Zend_Form du Zend Framework (création de formulaires, helpers, AJAX etc.). Avant de poster -> FAQ Zend_Form.
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 24/06/2008, 13h15   #1
Rédacteur
 
Avatar de Yogui
 
Homme Guillaume Rossolini
Directeur technique
Inscription : février 2004
Messages : 13 720
Détails du profil
Informations personnelles :
Nom : Homme Guillaume Rossolini
Localisation : France

Informations professionnelles :
Activité : Directeur technique

Informations forums :
Inscription : février 2004
Messages : 13 720
Points : 17 355
Points : 17 355
Par défaut Créer des widgets Dojo depuis ZF

Salut

Je sais, je suis en retard mais je viens à peine de voir l'annonce de Matthew :
Citation:
Greets!

I've got the Dojo Zend_Form widgets proposal ready for community review:

http://framework.zend.com/wiki/displ...d_Form+Widgets

Basically, the proposal aims to address two themes:

* Creating Dojo-specific form elements
* Using Dojo layout containers and content panes with Zend_Form

Most dijit.form widgets are present, as are all major layout dijits.

Additionally, if you haven't looked at it already, please look at the
dojo.data compatibility component review:

http://framework.zend.com/wiki/displ...er+O%27Phinney

Please review and comment!
Comme tout le monde s'y attendait, l'idée est de permettre à ZF de s'occuper de toute la configuration des formulaires :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$form->addElement('validationTextBox', 'username', array(
     'lowercase' => 'true',
     'maxlength' => 20,
     'regExp'    => '^[a-z][a-z0-9]{3,}$',
     'required'  => 'true',
     'invalidMessage' => 'Please enter a string between 3 and 20 characters with only alphanumeric characters',
     'filters'   => array(
         'StringTrim',
         'StringToLower',
     ),
     'validators' => array(
         'NotEmpty',
         array('StringLength', true, array(3, 20)),
         array('Regex', true, array('/^[a-z][a-z0-9]+$/i')),
     ),
 ));
Ici par exemple, on créé un widget Dojo depuis ZF : ValidationTextBox. Il suffit ensuite d'utiliser les assistants de la Vue pour inclure les bons scripts dijit.*

Avez-vous des avis/suggestions ?
__________________
Mes articles - Zend Certified Engineer (PHP + Zend Framework)
Ressources PHP - Ressources Zend Framework
Yogui est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/07/2008, 11h17   #2
Candidat au titre de Membre du Club
 
Inscription : mai 2008
Messages : 16
Détails du profil
Informations forums :
Inscription : mai 2008
Messages : 16
Points : 14
Points : 14
En retard aussi de quelques jours mais il y a maintenant des widgets dans l'incubateur :
Images attachées
Type de fichier : png Capture-incubator*-*Navigateur de fichiers.png (207,6 Ko, 30 affichages)
fterrasson est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 10/07/2008, 11h31   #3
Rédacteur
 
Avatar de Yogui
 
Homme Guillaume Rossolini
Directeur technique
Inscription : février 2004
Messages : 13 720
Détails du profil
Informations personnelles :
Nom : Homme Guillaume Rossolini
Localisation : France

Informations professionnelles :
Activité : Directeur technique

Informations forums :
Inscription : février 2004
Messages : 13 720
Points : 17 355
Points : 17 355
Oui, c'est en pleine évolution en ce moment. Voici par exemple un message de Matthew hier :
Citation:
-- Ralf Eggert <r.eggert@travello.de> wrote
(on Wednesday, 09 July 2008, 10:27 AM +0200):
> I am currently writing an article about the actual state of affairs for
> the Zend Framework which will be published in the next edition of the
> German PHP Magazin.
>
> Now I would like to add a chapter about the plans for the 1.6 release.
> From my notes I got that the MVC testing scaffold and the SOAP support
> is planned to be published in the 1.6 release.
>
> What else is in the pipe for 1.6?
> Is there any release date planned for 1.6?


I'm going to defer to Wil for much of this, but will take an initial
stab on the things I know.

Regarding features in the pipe for 1.6, yes, SOAP support and MVC
testing scaffold are biggies, as is the Dojo integration (more on that
below). We also plan to ship a prototype of Zend_Tool, though it will
not be the final version; think of it as a preview release of that
component.

> What is the status of the Dojo integration?


About 90% complete; I plan to finish the form decorators today, as well
as all tests for elements and decorators. This will complete the fourth
and final item in our initial Dojo integration -- which means it will
ship with 1.6. The 4 integration points are:

* JSON-RPC server implementation (Zend_Json_Server)
* ZF component for generating dojo.data payloads
* dojo() placeholder view helper for setting up the Dojo environment
for your application
* Form elements, decorators, and view helpers implementing Dojo dijits

Additionally, we will be shipping Dojo with 1.6.

> What are the plans for jQuery?


None whatsoever for 1.6. Any jQuery support in ZF will need to be wholly
owned by community contributors, and will need to go through the
proposal process just like any other component.
- Show quoted text -

> Since the editorial deadline is tomorrow, it would be nice to get some
> input until then. Thanks.



--
Matthew Weier O'Phinney
Software Architect | matthew@zend.com
Zend Framework | http://framework.zend.com/
__________________
Mes articles - Zend Certified Engineer (PHP + Zend Framework)
Ressources PHP - Ressources Zend Framework
Yogui est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 17h56.


 
 
 
 
Partenaires

Hébergement Web