How to pass a parameter before the controller in the zend framework?

0

I'm using zend framework 1.11, I need to create a language system, I have the code:

    $rotaNoticiaExibirT = new Zend_Controller_Router_Route(
            ':en/noticias/:nome_sistema/', array(
        'controller' => 'noticias',
        'action' => 'exibir'
            )
    );

O: en would be a parameter for url to look like this: myite.com/en/news/example_01

In the DisplayAction I already know what to do, the problem is that the system understands the: en as a controller, and the news that the controller is an action ...

    
asked by anonymous 22.09.2018 / 21:35

0 answers