downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Yaf_Dispatcher::returnResponse> <Yaf_Dispatcher::initView
[edit] Last updated: Fri, 24 May 2013

view this page in

Yaf_Dispatcher::registerPlugin

(Yaf >=1.0.0)

Yaf_Dispatcher::registerPluginRegistra un complemento

Descripción

public Yaf_Dispatcher Yaf_Dispatcher::registerPlugin ( Yaf_Plugin_Abstract $plugin )

Registra un complemento (véase Yaf_Plugin_Abstract). Generalmente se registran complementos en el Arranque (véase la clase Yaf_Bootstrap_Abstract).

Parámetros

plugin

Valores devueltos

Ejemplos

Ejemplo #1 Yaf_Dispatcher::registerPlugin()example

<?php
class Bootstrap extends Yaf_Bootstrap_Abstract{
  public function 
_initPlugin(Yaf_Dispatcher $despachador) {
    
/**
    * Yaf asume que los scripts de complementos están en [application.directory] .  "/plugins"
    * para este caso, será:
    * [application.directory] . "/plugins/" . "User" . [application.ext]
    */
    
$usuario = new UserPlugin();
    
$despachador->registerPlugin($usuario);
 }


add a note add a note User Contributed Notes Yaf_Dispatcher::registerPlugin - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites