2008年11月17日星期一

Re: [fw-mvc] problem with router

For some reason the manual is not updated.
Here it is a guide that I found really useful:
http://www.noginn.com/2008/09/03/using-subdomains-as-account-keys/ ;)

Giuliano

zamanphp wrote:
>
> 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-tp20528254p20535463.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: