Hi, 
I want to make this kind of route:

www.mysite.com/staticword-dynamicword.html

where 'dynamicword' will be a variable.
I tried do make this route without success, I always get an 'Invalid controller 
specified' exception.

My test was with this code

      $route = new Zend_Controller_Router_Route_Static(
          'staticword-*.html',
          array(
            'module'     => 'default',
            'controller' => 'search', 
            'action'     => 'index',
            'lang' => ''
          )
      );
      $router->addRoute('routeTest', $route);

      $front->setRouter($router);

and also with





      $route = new Zend_Controller_Router_Route_Static(

          'staticword-:variable.html',

          array(

            'module'     => 'default',

            'controller' => 'search', 

            'action'     => 'index',

            'lang' => ''

          )

      );

      $router->addRoute('routeTest', $route);
      $front->setRouter($router);


Any advices are very appreciated.
Thank you


Sergio Rinaudo

_________________________________________________________________
Con Windows Live, puoi organizzare, modificare e condividere le tue foto.
http://www.microsoft.com/italy/windows/windowslive/products/photo-gallery-edit.aspx

Reply via email to