佳音的博客

2010/02/26

static hostname to special module -zend framework

Filed under: php — 佳音 @ 4:36 下午

麻烦的zend                 tnnd 手册也不全
‘sso’ => array(
‘type’ => ‘Zend_Controller_Router_Route_Hostname’,
‘route’ => ‘sso.xxxxxx.com’,
‘defaults’ => array(
‘module’ => ‘sso’,
‘controller’=>’index’,
‘action’=> ‘index’
),

‘chains’ =>  array(
array(
‘type’=>’Zend_Controller_Router_Route’,
‘route’=>’:controller/:action’,
‘defaults’ => array(
‘module’     => ‘sso’,
‘controller’ => ‘index’,
‘action’     => ‘index’
)
)
)
)

大概是这么写的

Powered by 00RZ