On 5/31/08, yps <[EMAIL PROTECTED]> wrote:
>
>
> thanks for your responses.
>
> I took that part:
>
>
> <?php
> $route = new Zend_Controller_Router_Route(
> 'author/:username',
> array(
> 'controller' => 'profile',
> 'action' => 'userinfo'
> )
> );
>
> $router->addRoute('user', $route);
>
>
>
> but I got a fatal error: Call to a member function addRoute() on a
> non-object,
> and the Zend_Controller_Router_Route class IS LOADED..
>
That's because $router is not an instance of Zend_Controller_Route.
Try first calling
$router = Zend_Controller_Front::getInstance()->getRouter();
--
Vincent