Yaf_Route_Supervar::__construct

(Yaf >=1.0.0)

Yaf_Route_Supervar::__constructThe __construct purpose

˵��

publicYaf_Route_Supervar::__construct ( string $supervar_name )

Yaf_Route_Supervar ������ Yaf_Route_Static����ͬ����Yaf_Route_Supervar ��query string ��Ѱ��·����Ϣ������ supervar_name �ǽ���

Warning

��������δ��д�ĵ������в����б�

����

supervar_name

����

����ֵ

����

Example #1 Yaf_Route_Supervar()example

<?php
   
/**
    * Add a supervar route to Yaf_Router route stack
    */
    
Yaf_Dispatcher::getInstance()->getRouter()->addRoute("name",
        new 
Yaf_Route_Supervar("r"));
    );
?>

�������̵���������ڣ�

/** for request: http://yourdomain.com/xx/oo/?r=/ctr/act/var/value
  * will result in following:
  */
  array (
    "module"   => index(default),
    "controller" => ctr,
    "action"     => act,
    "params"     => array(
          "var" => value,
     )
  )

�μ�