Outils pour utilisateurs

Outils du site


informatique:php:zend_framework

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:php:zend_framework [09/09/2009 18:09] cyrilleinformatique:php:zend_framework [19/05/2012 00:18] (Version actuelle) – modification externe 127.0.0.1
Ligne 37: Ligne 37:
   * [[http://www.whitewashing.de/blog/articles/117|Using a Dependency Injection Container with Zend_Application]] , Benjamin Eberlei, 2009-06-16    * [[http://www.whitewashing.de/blog/articles/117|Using a Dependency Injection Container with Zend_Application]] , Benjamin Eberlei, 2009-06-16 
   * PHP Performance Tips from Stas Malyshev: On his blog, Stas Malyshev (Core Contributor to PHP and Zend Employee) has posted a [[http://php100.wordpress.com/2009/07/13/php-performance/|list of PHP Performance tips that he wants novices to know about]]. He realized that while he had [[http://php100.wordpress.com/2009/06/26/php-performance-google/|previously panned a post by Google about PHP Performance]] of having lots of incorrect or misleading information, but that he never gave good substitute advice himself.   * PHP Performance Tips from Stas Malyshev: On his blog, Stas Malyshev (Core Contributor to PHP and Zend Employee) has posted a [[http://php100.wordpress.com/2009/07/13/php-performance/|list of PHP Performance tips that he wants novices to know about]]. He realized that while he had [[http://php100.wordpress.com/2009/06/26/php-performance-google/|previously panned a post by Google about PHP Performance]] of having lots of incorrect or misleading information, but that he never gave good substitute advice himself.
 +  * [[http://steven.macintyre.name/tag/zend-framework/|Building a Zend Modular CMS System]] (JQuery, BB Code, Navigation and Blocks, TinyMCE, ...)
  
 ===== Plugins ===== ===== Plugins =====
Ligne 69: Ligne 70:
 On notera un objet de requête, un objet de réponse, un ensemble d'objet routeurs, un dispatcheur, un ensemble de contrôleurs dits "d'action", des aides aux actions (Action Helpers), puis des plugins et un objet conteneur de plugins. On notera un objet de requête, un objet de réponse, un ensemble d'objet routeurs, un dispatcheur, un ensemble de contrôleurs dits "d'action", des aides aux actions (Action Helpers), puis des plugins et un objet conteneur de plugins.
 Notez que FC ne touche pas à l'objet de vue. Notez que FC ne touche pas à l'objet de vue.
 +
 +Controller Workflow Summary:
 +  * Zend_Controller_Front - manages the overall workflow.
 +  * Zend_Controller_Request*- accessors for controllers and actions (and status .. e.g. already dispatched)
 +  * Zend_Controller_Router - exactly once per request, calculates correct controllers and actions based on environment in Zend_Controller_Request
 +  * Zend_Controller_Dispatcher - transfers flow of execution to controllers and actions in request object (Zend_Controller_Request*). Process repeats until no more actions are scheduled.
 +  * Zend_Controller_Action* - userland controller classes containing userland actions
 +  * Zend_Controller_Response* - contains the output of the executed actions
  
 Le processus complet du MVC de Zend Framework peut être résumé à ce plan là : Le processus complet du MVC de Zend Framework peut être résumé à ce plan là :
Ligne 179: Ligne 188:
  
 Doc Zend_Form [[http://framework.zend.com/manual/fr/zend.form.html|fr]] [[http://framework.zend.com/manual/en/zend.form.html|en]]. Doc Zend_Form [[http://framework.zend.com/manual/fr/zend.form.html|fr]] [[http://framework.zend.com/manual/en/zend.form.html|en]].
 +
 +  * [[http://devzone.zend.com/article/3450|Decorators with Zend_Form]]
 +  * [[http://wiip.fr/content/zend-form-personnaliser-les-messages-des-validateurs|personnaliser les messages des validateurs]]
  
 === Exemples === === Exemples ===
Ligne 272: Ligne 284:
 [[http://julien-pauli.developpez.com/tutoriels/zend-framework/atelier/formlogin/|Créer un formulaire de login réutilisable basé sur Zend_Form]] par Julien Pauli (09/02/2009) [[http://julien-pauli.developpez.com/tutoriels/zend-framework/atelier/formlogin/|Créer un formulaire de login réutilisable basé sur Zend_Form]] par Julien Pauli (09/02/2009)
 > Zend_Form est un composant touffu, mais très puissant. Plus encore que d'autres composants du Zend Framework , Zend_Form a été prévu pour être étendu. Nous allons voir comment créer un LoginForm, basé sur Zend_Form, qui comme son nom l'indique, permet la connexion d'une personne grâce à un couple login/password avec une vérification de l'identité via une base de données. > Zend_Form est un composant touffu, mais très puissant. Plus encore que d'autres composants du Zend Framework , Zend_Form a été prévu pour être étendu. Nous allons voir comment créer un LoginForm, basé sur Zend_Form, qui comme son nom l'indique, permet la connexion d'une personne grâce à un couple login/password avec une vérification de l'identité via une base de données.
 +
 +=== Using Zend_Form in Your Models ===
 +
 +  * [[http://www.whitewashing.de/blog/articles/109|Zend_Form and the Model: Yet another perspective using a Mediator]] 23/01/2009
 +  * [[http://codeutopia.net/blog/2009/01/07/another-idea-for-using-models-with-forms/|Another idea for using models with forms]] 07/01/2009
 +  * [[http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html|Using Zend_Form in Your Models]] 22/12/2008
  
 === Database backed Zend_Form elements === === Database backed Zend_Form elements ===
Ligne 332: Ligne 350:
   * [[http://julien-pauli.developpez.com/tutoriels/zend-framework/atelier/aclmvc/|Lier les ACLs aux contrôleurs et objets métiers]] le 2009-07-30 par Julien Pauli   * [[http://julien-pauli.developpez.com/tutoriels/zend-framework/atelier/aclmvc/|Lier les ACLs aux contrôleurs et objets métiers]] le 2009-07-30 par Julien Pauli
   * Applying ACLs to Models (2008-12-04): http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html   * Applying ACLs to Models (2008-12-04): http://weierophinney.net/matthew/archives/201-Applying-ACLs-to-Models.html
 +  * [[http://www.openstates.com/blog/webinar-plugin-dauthentification-et-de-droits-dacces-developpe-en-un-temps-record/|plugin d’authentification et de droits d’accès développé en un temps record !]], [[http://www.openstates.com/blog/plugin-authacl-les-sources/|Plugin Auth/ACL : les sources]]
 ====Zend_Db==== ====Zend_Db====
  
Ligne 417: Ligne 435:
  
 Use of [[:informatique:TinyMCE]] : Use of [[:informatique:TinyMCE]] :
-  * +  * [[http://steven.macintyre.name/zend-framework-tinymce-view-helper/|Zend Framework TinyMce View Helper]] (2009-07-28)
  
  
Ligne 443: Ligne 461:
 > That said, you will more than likely have to get the module directory from the front controller, then iterate that to find the modules. Once you have the modules, you'll have to find the *Controller.php files inside the controller directory of each module. After that, if you want the actions, reflection is the best way to go: looking for any methods that are public and end in 'Action'. > That said, you will more than likely have to get the module directory from the front controller, then iterate that to find the modules. Once you have the modules, you'll have to find the *Controller.php files inside the controller directory of each module. After that, if you want the actions, reflection is the best way to go: looking for any methods that are public and end in 'Action'.
  
 +Solution dans http://www.developpez.net/forums/d805986/php/outils/zend/zend-framework/mvc/lister-controleurs-dispo-application/
 +
 +Je me suis écrit une classe [[/informatique/php/zend_framework/Utils_ZFApplicationExplorer]] qui fait le boulot.
 +
 +====ZF & ORM====
 +
 +You should take a look at **Doctrine 2**. As  **Zend Entity** it implements the **JPA specification** and is a true data mapper with models decoupled from Database completly.
 +
 +Sur cette page http://www.doctrine-project.org/about, vous verrez que Benjamin Eberlei (auteur de Zend_Entity) est contributeur de Doctrine 2 et Guilherme Blanco est un contributeur habituel de ZF.
  
informatique/php/zend_framework.1252512572.txt.gz · Dernière modification : 19/05/2012 00:15 (modification externe)

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki