2008年11月16日星期日

[fw-mvc] problem with router

hi
i have using following code in bootstrap similar to manual zf:

$route = new Zend_Controller_Router_Route(
array(
'host' => array(
'regex' => '([a-z]+).mysite.com',
'reverse' => '%s.mysite.com',
'params' => array(
1 => 'username'
)
),
'path' => ''
),
array(
'module' => 'users',
'controller' => 'profile',
'action' => 'index'
)
);
$router->addRoute('profile', $route);

but a error showed to me :
Array to string conversion in ....\library\Zend\Controller\Router\Route.php
on line 74
what is problem?

--
View this message in context: http://www.nabble.com/problem-with-router-tp20528254p20528254.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: